[
http://jira.qos.ch/browse/LBCORE-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10799#action_10799
]
Ceki Gulcu commented on LBCORE-15:
----------------------------------
I have tested the existing code on Oracle 11g (version 11.1.0.6.0) and it seems
to work just fine.
I'll see if I can reproduce it with Oracle 10g.
> Problems getting autogenerated Keys in Oracle with Oracle JDBC 10.2.03
> ----------------------------------------------------------------------
>
> Key: LBCORE-15
> URL: http://jira.qos.ch/browse/LBCORE-15
> Project: logback-core
> Issue Type: Bug
> Components: Appender
> Affects Versions: unspecified
> Environment: Operating System: Windows
> Platform: PC
> Reporter: Klaus Unger
> Assignee: Logback dev list
> Priority: Blocker
>
> I've encountered troubles logging StackTrace/MDC entries with die DBAppender
> on our plattform! We are using Oracle 9.2.0.6.0 on a Solaris Box with Oracle
> JDBC Driver 10.2.0.3!
> I've debugged the processing of LogMessages into DBAppenderBase.append()!
> There I found a call "con.prepareStatement(getInsertSQL())" which is followed
> by a call "subAppend(...)"
> As far as I understand Oracle Drivers return generatedKeys only, if you use
> the right prepareStatement() methods, which is in my understanding the
> following:
> PreparedStatement prepareStatement(String sql, int autoGeneratedKeys)
> throws SQLException
> @see
> http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Connection.html#prepareStatement(java.lang.String,%20int)
> which is available since JDK 1.4
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
logback-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/logback-dev