Generic function
Returns the SQL state that corresponds to the reported error or warning.
returned-sqlstate diagnostic => sqlstate
<diagnostic>.
limited(<string>, size: 5).
SQL
SQL
Returns the sqlstate that corresponds to the error or warning reported in the detail area.