Details
-
Bug
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.0_CR1
-
None
Description
We have some failures in Sybase when using JDBC 4 driver that needs to be investigated. It seems like the JDBC driver doesn't returns the correct value for getIdentifierQuoteString() but this needs to be proved. One example of the issue occurs in the test org.hibernate.test.naturalid.immutable.ImmutableNaturalIdTest, with this output:
16:09:41,957 DEBUG SchemaExport:363 - Cannot drop the table 'IMM_NAT_ID_USER', because it doesn't exist in the system catalogs.
16:09:41,957 DEBUG SchemaExport:377 -
create table IMM_NAT_ID_USER (
myUserId int not null,
version int not null,
userName varchar(10) not null,
"password" varchar(15) not null,
email varchar(255) null,
primary key (myUserId),
unique (userName)
)
16:09:42,082 ERROR SchemaExport:348 - Unsuccessful: create table IMM_NAT_ID_USER (myUserId int not null, version int not null, userName varchar(10) not null, "password" varchar(15) not null, email varchar(255) null, primary key (myUserId), unique (userName))
16:09:42,082 ERROR SchemaExport:349 - Incorrect syntax near ','.
If it proves to be a problem with JDBC4 version of Sybase's driver, we may reconsider supporting JDBC4 for Sybase and fall back to JDBC3.
Attachments
Issue Links
- is blocked by
-
JBPAPP-4731 HHH-5413 null values for columns mapped as "boolean" cause exception when saving entity with Sybase jdbc4
- Closed