Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JDBC-8.4.1
-
Component/s: JDBC
-
Labels:None
-
Environment:
Windows XP Professional SP3, CUBRID 8.3.1
Description
When executing this query:
"SELECT MAX(SYS_CONNECT_BY_PATH(text, ''))AS myQuery FROM ( SELECT ROWNUM AS r, 'INSERT INTO _values (SELECT CAST(' + a.attr_name + ' as VARCHAR(255)) from ' + c.class_name + '); ' AS text FROM _db_class c JOIN _db_attribute a ON c = a.class_of JOIN _db_data_type t ON a.data_type = t.type_id WHERE c.is_system_class = 0 AND t.type_name in ('VARCHAR', 'CHAR', 'STRING', 'INT', 'SMALLINT', 'BIGINT', 'NUMERIC', 'FLOAT', 'DOUBLE', 'DATE', 'TIME', 'DATETIME', 'TIMESTAMP') ) AS res START WITH r = 1 CONNECT BY PRIOR r = r - 1;"
using JDBC it fails with the error: "Cannot communicate with the broker".
The same query runs OK in CUBRID Manager.
On the other hand, if change the query string it will work just fine.