obconnector-j icon indicating copy to clipboard operation
obconnector-j copied to clipboard

OceanBase Client for Java is a JDBC 4.2 compatible driver, used to connect applications developed in Java to OceanBase Database Server.

Results 14 obconnector-j issues
Sort by recently updated
recently updated
newest added

### Describe your use case OceanBase Client for Go ### Describe the solution you'd like Just curious if OB has any plan to develop a client in Go. As more...

### Describe the bug 通过jdbc oracle企业版在查询海量数据的时候,如1亿以上,报OOM。同样代码在ORACLE下无问题,部分代码如下: stmt = conn.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, ResultSet.HOLD_CURSORS_OVER_COMMIT); stmt.setFetchDirection(ResultSet.FETCH_FORWARD); stmt.setFetchSize(1000); rs = stmt.executeQuery(); // 内存溢出 ### Environment 驱动版本2.4.3 ### Fast reproduce steps / ### Expected behavior...

### Describe the bug 报错信息: `Suppressed: java.lang.ClassCastException: java.util.LinkedHashMap$Entry cannot be cast to java.util.HashMap$TreeNode at java.util.HashMap$TreeNode.moveRootToFront(HashMap.java:1835) ~[?:1.8.0_242] at java.util.HashMap$TreeNode.treeify(HashMap.java:1951) ~[?:1.8.0_242] at java.util.HashMap.treeifyBin(HashMap.java:772) ~[?:1.8.0_242] at java.util.HashMap.putVal(HashMap.java:644) ~[?:1.8.0_242] at java.util.HashMap.put(HashMap.java:612) ~[?:1.8.0_242] at com.oceanbase.jdbc.OceanBaseConnection.getCachedSql(OceanBaseConnection.java:612)...

![Snipaste_2023-08-03_10-02-47](https://github.com/oceanbase/obconnector-j/assets/28984017/7c4a71db-8940-4cee-a851-88423a6b8818) 针对IDEA连接oceanbase数据库获取不到注释的建议,我的做法是join **user_col_comments** 表 关联查询出字段对应的comments

**Describe the bug** ```sql create table T4(ID BINARY_FLOAT); insert into T4 values(1.2); ``` 然后通过jdbc 使用select 查询这个表,当调用resultSet.getObject()方法时驱动会报错,驱动用的oceanbase-client:2.4.3 错误的位置在下面截图这里: ![image](https://github.com/oceanbase/oceanbase/assets/20572131/d3dc81dd-c880-4fff-ba86-04de1d091f6d) 这里直接new String(bytes) 没看懂.. 下面用Float.intBitsToFloat转换能正常显示出插入值 1.2 ![image](https://github.com/oceanbase/oceanbase/assets/20572131/963ccdfd-14a1-40da-9f42-bc8e4fe794ff)

### Describe the bug ` public void addSuccessStat(long updateCount, long insertId, boolean containOnDuplicateKey, String serverInfo) { if (containOnDuplicateKey && updateCount == 0) { updateCount = 1; } addSuccessStat(updateCount, insertId); this.serverInfo...

### Describe the bug When I run a java code to connect to Oceanbase and I set the default time zone to `UTC` or `GMT+00:00`, an exception will be throwed:...

### Describe the bug When using the driver without the useInformationSchema option the getTables REMARK column returns the result of `new byte[0].toString();` which results in values like `[B@78aab498` ### Environment...

### Describe the bug serverTimezone=GMT%2B8 can't be use ### Environment 2.4.12 openjdk22 ### Fast reproduce steps add serverTimezone=GMT%2B8 in jdbcurl ### Expected behavior _No response_ ### Actual behavior _No response_...

### Describe the bug Map map = new HashMap(); map.put(DruidDataSourceFactory.PROP_DRIVERCLASSNAME, driver); map.put(DruidDataSourceFactory.PROP_URL, url); map.put(DruidDataSourceFactory.PROP_USERNAME, user); map.put(DruidDataSourceFactory.PROP_PASSWORD, password); DataSource dataSource = DruidDataSourceFactory.createDataSource(map); JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource); String sql = "select...