dbTalk Databases Forums  

[BUGS] BUG #1201: void functions called through jdbc driver return error

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1201: void functions called through jdbc driver return error in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1201: void functions called through jdbc driver return error - 07-27-2004 , 01:28 AM







The following bug has been logged online:

Bug reference: 1201
Logged by: Jonathan Scott

Email address: jwscott (AT) vanten (DOT) com

PostgreSQL version: 7.4

Operating system: Linux

Description: void functions called through jdbc driver return error

Details:

Hello all,

At work here, we are considering upgrading from 7.3 to 7.4, but we've hit a
bit of a snag. We have functions in our schema that have return void. When
called through the 7.4's JDBC driver, we get the following error:

ERROR: function "fulfill_cctrans_item" in FROM has unsupported return type

Our DB unit tests seem to indicate the function is defined and works
correctly; we just get the error when accessing it through the JDBC driver.

Inside our Java code, we use executeQuery() on a CallableStatement object,
as below:

stmt = con.prepareCall("{ call " + statement + "}");
stmt.executeQuery();

Any more info needed, please feel free to contact me.

Thanks,
Jonathan


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.