package AdaBase is
   subtype Driver_Codes is Integer range -999 .. 1999;
end AdaBase;

Driver_Codes function
AdaBase.Driver.Base.[DB].last_driver_code ()

This function returns a driver-specific error code regarding the last operation performed by the database handle.


Boolean function
AdaBase.Statement.Base.[STMT].last_driver_code ()

This function returns a driver-specific error code regarding the last operation performed by the statement handle.

</br>

See last driver message and stmt discard rest for a usage examples.


[DB] is "MySQL.MySQL_Driver", "PostgreSQL.PostgreSQL_Driver", or "SQLite.SQLite_Driver"

[STMT] is "MySQL.MySQL_statement", "PostgreSQL.PostgreSQL_statement", or "SQLite.SQLite_statement"

See Also