mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 11:09:41 +02:00
fcl-db: dbtestframework:
* mssql server: improve results by setting ANSI_PADDING to ON when connecting. See http://msdn.microsoft.com/en-us/library/ms187403.aspx git-svn-id: trunk@27020 -
This commit is contained in:
parent
7f93de8697
commit
18ae2b20df
@ -241,6 +241,10 @@ begin
|
||||
// having to specify NULL all the time:
|
||||
// http://msdn.microsoft.com/en-us/library/ms174979.aspx
|
||||
FConnection.ExecuteDirect('SET ANSI_NULL_DFLT_ON ON');
|
||||
// Padding character fields is expected by ANSI and sqldb, as well as
|
||||
// recommended by Microsoft:
|
||||
// http://msdn.microsoft.com/en-us/library/ms187403.aspx
|
||||
FConnection.ExecuteDirect('SET ANSI_PADDING ON');
|
||||
end;
|
||||
TempTrans.Commit;
|
||||
TempTrans.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user