You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Marcos Sanz/Denic <sa...@denic.de> on 2007/07/20 16:55:11 UTC
DBAppender dialect for Sybase
All,
after having spent a whole afternoon in realizing that no known Sybase
JDBC 3.0 driver correctly supports generated keys, I tried the easy way of
programming a Sybase dialect, which should be included in the
org.apache.log4j.db.dialect package.
Please find attached SybaseDialect.java
Additionally, the file org.apache.log4j.db.dialect.Util.java has to be
extended with the constant
private static final String SYBASE_PART = "adaptive";
for automatic dialect discovery (at least that's the string what my ASE 15
version delivers). The interface org.apache.log4j.db.ConnectionSource has
also to be extended with a
final int SYBASE_DIALECT = 6;
Best regards,
Marcos Sanz