[PATCHES] error codes for ln(), power()

2004-05-15 Thread Neil Conway
SQL2003 mandates that ln() and power() emit particular SQLSTATE error codes for a few illegal combinations of arguments (in Section 6.27 of my copy of SQL2003). This patch adds those error codes and changes the several variants of ln() and power() to emit them as appropriate. I didn't change

Re: [PATCHES] error codes for ln(), power()

2004-05-15 Thread Tom Lane
Neil Conway [EMAIL PROTECTED] writes: I didn't change log() to emit the same error code as ln() when it is passed similarly incorrect arguments, on the grounds that the SQLSTATE code defined by SQL specifically refers to the natural logarithm. Does anyone think I should make both log() and