mycat-download-new's People
Forkers
zhjxzhj makay0823 liuhaonan2003 luonianqiang feifie chunlin428 will-xin n040661 xuheng8600 fokman wenwu1114mycat-download-new's Issues
PartitionByMonth分片时,使用日期范围查询,分片不准确
查看源码发现
PartitionByMonth.calculateRange(s,e) 方法始终返回0
MongoResultSet 第102行代码错误
如题,错误信息
Caused by: org.hibernate.MappingException: No Dialect mapping for JDBC type: 0
错误原因就是下面第三行
public void SetFieldType(boolean isid) throws SQLException {
if (isid) {
fieldtype= new int[Types.VARCHAR];
}
else {
fieldtype = new int[this.select.length];
}
if (_cur!=null) {
for (int i=0;i<this.select.length;i++){
Object ob=this.getObject(i+1);
fieldtype[i]=MongoData.getObjectToType(ob);
}
}
}
java的gbk的列名乱码
1、MariaDB [svcall]> show variables like 'character%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | gbk |
| character_set_connection | gbk |
| character_set_database | gbk |
| character_set_filesystem | binary |
| character_set_results | gbk |
| character_set_server | gbk |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
2、mycat system的下面已经设置 charset gbk
3、 java代码:
rs = stmt.executeQuery(selSql); ---这里单步调试显示中文正常 selSql= select a as 第一列 ,b as 第二列 from test;
//System.out.println(selSql);
ResultSetMetaData rsmd = rs.getMetaData(); //这里获取出来是乱码。
int columnCount = rsmd.getColumnCount();
这个语句在mycat中命令行中执行是正确显示的。
select a as 第一列 ,b as 第二列 from test; 这个语句在mycat中执行是正常的
java直接连mysql也是正常的。
知道如何调整?
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.