Sybase JDBC Driver's small hairy

xiaoxiao2021-03-06  56

Using Sybase JDBC Driver to get Connection CONN, use conn.setautocommit (b), B), B), B is the same TRUE | FALSE, error SET Chained Command Not Allowed Withnin Multi-Statement Transaction.

Solution:

use

IF (conn.getautocommit ()! = b) {

Conn.setAutocommit (b);

}

instead

Conn.setAutocommit (b).

There is no such problem using other databases (such as Oracle).

转载请注明原文地址:https://www.9cbs.com/read-83619.html

New Post(0)