Execute MsgNo : [00226] : CREATE DATABASE statement not allowed within multi-statement transaction., affected 0 row(s)
Execute Statement 4 : CREATE DATABASE [test] in 3 ms
Query affected -1 row(s) in 158 milliseconds <- SQLQuery.RowsAffected property logged manually
Execute MsgNo : [00102] : Incorrect syntax near 'rewrwe'., affected 0 row(s)
Execute Statement 3 : CREATE DATABASE [test]rewrwe in 4 ms
Query affected -1 row(s) in 121 milliseconds <- SQLQuery.RowsAffected property logged manually
There are no exceptions raised, failed operations can only be seen in the SQL trace.
The problem MIGHT be TZDBLibConnection.CheckDBLibError, which ends like this:
Code: Select all
if LogMessage <> ''
then FLogMessage := Format(FormatStr, [FLogMessage, FirstError, LogMessage])
else FLogMessage := Format(FormatStr, [FLogMessage, FirstError]);
FLogMessage := '';
FLastWarning := EZSQLWarning.CreateWithCode(FirstError, FLogMessage);
Symptom is the same with FreeTDS 0.95.87.0.
Is this a Zeos or a FreeTDS issue?