- Changed message handler also to handle message #11021

- Adjusted expected output
# Seems newer Sybase versions yielf different error codes for getdate(NULL)
This commit is contained in:
Timm Friebe 2007-03-14 11:57:45 +00:00
parent ca75503c8f
commit b9bc7c55d4

View File

@ -20,6 +20,7 @@ Sybase-CT server message handler
return;
case 174: // The function 'GETDATE' requires 0 arguments.
case 11021: // Function GETDATE invoked with wrong number or type of argument(s)
printf("*** Caught '%s'\n", trim($text));
return;
}
@ -45,7 +46,7 @@ Sybase-CT server message handler
--EXPECTF--
bool(true)
>>> Query: select getdate(NULL)
*** Caught 'The function 'GETDATE' requires 0 arguments.'
*** Caught '%s'
<<< Return: boolean
bool(false)
>>> Query: print "Hi"