472,121 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

can't update bytea field with function

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
0 2915

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Morten Goodwin Olsen | last post: by
reply views Thread by Jonathan Bartlett | last post: by
4 posts views Thread by David Garamond | last post: by
7 posts views Thread by C G | last post: by
7 posts views Thread by Dennis Gearon | last post: by
4 posts views Thread by Jerry LeVan | last post: by
reply views Thread by rich | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.