The same error is detected in stored **procedure**, but not in stored **function**
This question is related to my previous one: RaiseError (PERL, DBI) equivalent for unixODBC C API? As I isolated the problem later, I'll post new question, that is more specific, isolated and without unnecessary information. Version: unixODBC 2.3.0 lib: unixODBC - C API Suppose I have a stored FUNCTION : CREATE FUNCTION "test".func() RETURNING LVARCHAR(1000); set debug file to '/home/directory_does_not_exists/unknown.log'; trace off; trace on; trace off; return 'result is set here'; END FUNCTION; And the same body, but in stored PROCEDURE : CREATE PROCEDURE "test".proc(pDummy SMALLINT) set