![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am looking for a way to get the database messages and sqlstate in pltcl, and I can't find it in the docs. Must be something like "pg_result $db -status" in pgtcl, or $stmt->errorInfo() in PHP. Is this information somewhere in the system tables? /Str. |
#3
| |||
| |||
|
|
I am looking for a way to get the database messages and sqlstate in pltcl, and I can't find it in the docs. Must be something like "pg_result $db -status" in pgtcl, or $stmt->errorInfo() in PHP. Is this information somewhere in the system tables? /Str. so nothing in the system catalogs? |
#4
| |||
| |||
|
|
M. Strobel wrote: I am looking for a way to get the database messages and sqlstate in pltcl, and I can't find it in the docs. Must be something like "pg_result $db -status" in pgtcl, or $stmt->errorInfo() in PHP. Is this information somewhere in the system tables? /Str. so nothing in the system catalogs? It cannot be in the system catalogs because it is not persistent. Unfortunately I know nothing about Tcl, but the manual says (for spi_exec): "An error in the command causes an error to be raised." So I guess you should catch that error and examine the information therein. It should contain the message, and maybe it also contains the SQLSTATE. Yours, Laurenz Albe |
![]() |
| Thread Tools | |
| Display Modes | |
| |