You are not logged in.
fProps := TOleDBMSSQL2012ConnectionProperties.Create(VServer,VDatabase,VUserName,VPassword);
fProps.ExecuteInlined(VStr_Sql,True);
Offline
Do you mean that a column type bit is returned as -1 when the value is true?
It seems as documented, and expected: there is no native boolean type in our DB classes.
So the boolean is converted into an integer.
Just transtype with boolean() to get back your "true" value. If you use our ORM, it will be done directly.
See OleDBColumnToFieldType() in mormot.db.raw.oledb.pas which detects DBTYPE_BOOL as a ftInt64.
Offline
thanks ab,
but how can i set the true value to 1 instead of -1 ?
Offline
Offline