fcl-db: dbtestframework

* refine r26950: only use SET ANSI_NULL_DFLT_ON ON for MS SQL Server; Sybase ASE does not support it.

git-svn-id: trunk@27019 -
This commit is contained in:
reiniero 2014-03-07 09:30:54 +00:00
parent 009c96a0bd
commit 7f93de8697

View File

@ -235,10 +235,13 @@ begin
TempTrans.StartTransaction;
// Proper blob support:
FConnection.ExecuteDirect('SET TEXTSIZE 2147483647');
// When running CREATE TABLE statements, allow NULLs by default - without
// having to specify NULL all the time:
// http://msdn.microsoft.com/en-us/library/ms174979.aspx
FConnection.ExecuteDirect('SET ANSI_NULL_DFLT_ON ON');
if SQLServerType=ssMSSQL then
begin
// When running CREATE TABLE statements, allow NULLs by default - without
// having to specify NULL all the time:
// http://msdn.microsoft.com/en-us/library/ms174979.aspx
FConnection.ExecuteDirect('SET ANSI_NULL_DFLT_ON ON');
end;
TempTrans.Commit;
TempTrans.Free;
FConnection.Transaction:=nil;