sqlState property

String? sqlState
final

SQLSTATE code from the ODBC driver (if available).

This is a 5-character SQLSTATE code that provides more specific information about the error. For example:

  • 08001 - Unable to connect to data source
  • 42000 - Syntax error or access violation
  • 23000 - Integrity constraint violation

Implementation

final String? sqlState;