Re: [GENERAL] SQL syntax error handling within SPI functions in C

2006-10-13 Thread Martijn van Oosterhout
On Thu, Oct 12, 2006 at 02:29:27PM -0700, Stuart Morse wrote: > Hi, > > I've written a set of functions in C that will ultimately be called from an > enterprise java bean. I expected that when calling SPI_exec(sql, 0) it would > return an error code if "sql" contained a syntax error. At that point

[GENERAL] SQL syntax error handling within SPI functions in C

2006-10-13 Thread Stuart Morse
Hi,   I’ve written a set of functions in C that will ultimately be called from an enterprise java bean. I expected that when calling SPI_exec(sql, 0) it would return an error code if “sql” contained a syntax error. At that point I would be able to return my own (more meaningful) error mes