Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Jose J. Sanchez wrote:
> How can i get the line number or position of a syntax error when i execute a query
>
> lets say for example:
>
> SELECT *
> FROM nonexistent_table
> WHERE id = 1>
> i have an error on line 2,
>
> is there a way to get this information from informix??
If you're using ESQL/C you can check the sqlca structure.
sqlca.sqlerrd[4] will contain the position of where an error was
detected, when sqlca.sqlcode = 201.
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.