DF_DATABASE_IGNORE_WARNINGS
See Also: Ignore Warnings
Indicates whether warnings should be ignored or passed on as errors.
Level
Database
Supported by
The DataFlex SQL Drivers (SQL Server, DB2, and ODBC), revision 5 and higher.
Type
Boolean, temporary
Access
Read/Write
Values
TrueFalse
Syntax
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}
Driver Configuration Keyword
Remarks
SQL reports warnings and errors via the same mechanism. The SQL Database Drivers report both warnings and errors as an error to the runtime environment. The DataFlex environment does not have a warning concept. This driver attribute can be used to switch off reporting warnings as errors; when set to True, they are not reported at all.
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.