See Also: Ignore Warnings
Indicates warnings should be ignored or passed on as errors.
Database
The DataFlex SQL Drivers (SQL Server, DB2 and ODBC), revision 5 and higher
Boolean, temporary
Read/Write
True, False
Use cli.pkg
Get_Attribute DF_DATABASE_IGNORE_WARNINGS of {driverNumber} {databaseHandle} to {BooleanVariable}
Set_Attribute DF_DATABASE_IGNORE_WARNINGS of {driverNumber} {databaseHandle} to {True|False}
SQL reports warnings and errors via the same mechanism. The SQL Database Drivers report both the warnings and the errors as an error to the runtime environment. The DataFlex environment has no warning concept. This driver attribute can be used to switch of reporting warnings as errors; they are not reported at all when set to true.
Procedure ShowDBAttribute Integer iDriver Handle hDatabase
Boolean bAttribValue
Get_Attribute DF_DATABASE_IGNORE_WARNINGS of iDriver hDatabase to bAttribValue
Showln "Ignore warnings: " (If(bAttribValue, "YES", "NO"))
End_Procedure
The sample code above shows the current setting for a given database. The database handle can be obtained via the DF_DATABASE_ID attribute.