Comments (10)
大家都没有碰到过这个问题吗?
from shardingsphere.
我也碰到了这个问题 请问有解决方案吗
from shardingsphere.
在:com.dangdang.ddframe.rdb.sharding.jdbc.adapter.AbstractPreparedStatementAdapter中临时打了一个小补丁:
private void setParameter(final int index, final Object x) throws SQLException {
int extendedSize = index - parameters.size();
if (extendedSize > 1) {
while (--extendedSize > 0) {
parameters.add(null);
}
}
if(x instanceof java.io.StringReader){
Reader reader = (Reader)x;
BufferedReader r = null;
StringBuilder b = new StringBuilder();
String line;
try {
r = new BufferedReader(reader);
boolean first = true;
String ls = System.getProperty("line.separator");
while((line=r.readLine())!=null) {
if(first) first = false;
else b.append(ls);
b.append(line);
}
String y = b.toString();
parameters.add(index - 1,y);
} catch (IOException e) {
e.printStackTrace();
throw new SQLException(e);
} finally{
if(r!=null){
try {
r.close();
} catch (IOException e) {}
}
}
}
else{
parameters.add(index - 1, x);
}
}
from shardingsphere.
我也碰到了这个问题
from shardingsphere.
修复这个bug的代码会导致使用mybatis自增id出错。
在insert语句后,执行select last_insert_id() from dual出现空指针问题。
from shardingsphere.
我也遇到了 请问这个现在如何解决啊
from shardingsphere.
3.0也有这个问题,#{reqMsg,jdbcType=LONGVARCHAR}
如果是非基础类型,mysql的jdbc驱动调用了
com.mysql.cj.AbstractQueryBindings#setObject
com.mysql.cj.AbstractQueryBindings#setSerializableObject
stringReader不能序列化,抛出异常
Caused by: com.mysql.cj.exceptions.WrongArgumentException: Invalid argument value: java.io.NotSerializableException
from shardingsphere.
3.0也有这个问题,#{reqMsg,jdbcType=LONGVARCHAR}
如果是非基础类型,mysql的jdbc驱动调用了
com.mysql.cj.AbstractQueryBindings#setObject
com.mysql.cj.AbstractQueryBindings#setSerializableObject
stringReader不能序列化,抛出异常
Caused by: com.mysql.cj.exceptions.WrongArgumentException: Invalid argument value: java.io.NotSerializableException
+1
from shardingsphere.
对 jdbctype为longvarchar就会报这个错
from shardingsphere.
For English only, other languages will not accept.
I just lock this issue. If you want, you can submit a new issue with English
from shardingsphere.
Related Issues (20)
- GroupByStreamMergedResult#getValue Ignoring the type parameter causes a ClassCastException. HOT 2
- profiles support global env value HOT 13
- Proposal for a Robust High-Availability Architecture with Redundant Sharding and Seamless Failover in SS HOT 1
- Why does HikariCP default to reading the jdbc of slave MySQL? HOT 3
- Add DistSQLSegment HOT 1
- Replaces `com.ecwid.consul:consul-api` with `io.vertx:vertx-consul-client` in `shardingsphere-cluster-mode-repository-consul`
- 5.4.1 execute select * from xx where id in (1,2,3,4,5,6,7……15000); when in 10000+ postgresql occurs error mysql ok HOT 1
- postgreSql support regexp_split_to_table function HOT 1
- Proposal for a Robust High-Availability Architecture with Redundant Sharding and Seamless Failover in SS HOT 1
- the return value of "org.apache.shardingsphere.transaction.base.seata.at.SeataTransactionHolder.get()" is null HOT 4
- About postgresql row data message return problem HOT 1
- Does Shardingsphere version 5.4.0 support seata transaction tcc mode? HOT 3
- how to springboot3 integration with shardingsphere 5 HOT 2
- ShardingSphere-Proxy migration verification cannot be executed HOT 1
- not support COALESCE? HOT 1
- Table or view does not exist HOT 2
- java.lang.IllegalArgumentException: Type is required. HOT 2
- The cross-database join query of ds0#order_info and ds2#config_store_info failed with the error message "Unsupported SQL operation: all tables must be in the same compute node." HOT 1
- BindingTableGroups sql error: Routed target does not exist
- 5.4.1, table or view does not exist for single table HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shardingsphere.