By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,041 Members | 1,793 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,041 IT Pros & Developers. It's quick & easy.

can't update bytea field with function

P: n/a
i have a stored procedure that goes

Create function myfunction(bytea)
returns void
as
'update tbl_entity SET Right_Thumb = $1;' language sql

the problem is that if i change the stored procedure code to say
update a varchar (ie of a different column) the stored procedure works
fine. but when i throw a bytea into the procedure i get an error
"column XXX is of type byte but expresion is of thype integer"

i can assure you that the colun i am trying to update is the correct
data type because i have a insert function that inserts blobs into the
column just fine. Is this a glitch in postgresql.

Can anybody help?
Nov 23 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.