-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange exception #144
Comments
Can you share the code for your |
I've done a bit more digging, and it seems that the exception is due to the notices raised during function execution. I created two small test functions:
In a crystal program, 'select foo()' causes the exception whereas 'select foo2()' does not. |
I added:
to my function and problem solved. Happy now !!! |
Oh interesting. This is defiantly an edge case I didn't come across when implementing the pg protocol, that should be addressed. |
Thanks Will. While you have the hood open, another edge case (due to my stupidity):
It is caused by the commit inside the query block:
|
that D frame is your data row (1 column, length 3, then ascii 97 for 'a' and so on) but coming at an unexpected time with the block there. This one is probably because the stdlib interface was added a little later. I'm not 100% sure what is expected to work or not work inside a query block, but it shouldn't be an unexpected frame error, either way. |
Hi,
Am I doing something wrong here ?
Thanks,
Steve
The text was updated successfully, but these errors were encountered: