Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > Re: Problemas w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 1919 of 2028
Post > Topic >>

Re: Problemas with update sentence in postgres from jdbc

by craig@[EMAIL PROTECTED] (Craig Ringer) Apr 5, 2008 at 01:13 PM

Joksan Nempu Fernandez wrote:
> Hi:
>
> I try this ...
>
> String sql ="UPDATE crupier "+
>                     "SET  c_estado='"+cestado+"' WHERE "+
>                     " c_rut='"+crut+"' ";
>
> and send me the next exception Error:
>
> 04-04-2008 07:00:03 PM Persistencia.Mesa ActualizarTupla
> GRAVE: null
> org.postgresql.util.PSQLException: ERROR: el valor de array debe
comenzar
> con «{» o información de dimensión
>   
If I'm not mistaken that's complaining that the array must (begin with?) 
{ . There don't seem to be any arrays in your query.

Try turning on query logging in the database and obtaining the query, 
and the error, from the PostgreSQL logs. It's possible that the query 
you're writing isn't exactly what's being sent, especially since it 
sounds like you're using a persistence layer. As it is, we can't see the 
values of your variables or what the final SQL being sent is. Even the 
output of  System.out.println(sql) would be helpful, though not as good 
as information from the database logs.

If you set your locale to English for the testing you would probably get 
a better response too.

Please also post the output of running "\d crupier" in psql.

--
Craig Ringer

-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
 




 3 Posts in Topic:
Problemas with update sentence in postgres from jdbc
jnempu@[EMAIL PROTECTED]   2008-04-04 19:06:12 
Re: Problemas with update sentence in postgres from jdbc
craig@[EMAIL PROTECTED]   2008-04-05 13:13:41 
Re: Problemas with update sentence in postgres from jdbc
craig@[EMAIL PROTECTED]   2008-04-06 16:19:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 7:33:08 CDT 2008.