pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedUPDATE problem
5+ messages / 3 participants
[nested] [flat]
* UPDATE problem
@ 2005-03-31 13:32 Luis Sousa <llsousa@ualg.pt>
0 siblings, 2 replies; 5+ messages in thread
From: Luis Sousa @ 2005-03-31 13:32 UTC (permalink / raw)
To: pgsql-odbc
Hi all,
I'm using Postgresql 7.3.4-9 Debian binaries and ODBC 8.00.01.01, on
Windows 2003 Server.
Using ODBC, when the instruction
PREPARE "_PLAN586fbb8"(int4, int4) as UPDATE "public"."plano" SET
"alunosInscritos"=$1 WHERE "oid" = $2;EXECUTE "_PLAN586fbb8"(40,1676937)
I get the following error:
ERROR: parser: parse error at or near "=$" at character 84
I changed from "alunosInscritos"=$1 to "alunosInscritos" = $1 and worked.
Is there any workaround for this?
Also, I thought, probably using an older version of ODBC driver could
create a different SQL expression, but, when I tried to uninstall the
driver from Add/Remove Programs, everything went ok, but on ODBC Data
Sources -> Drivers, the driver still remains there.
Then I installed 7.03.0200, but didn't write over the other driver? How
can I deinstall the most recent driver and install an older one?
Best regards,
Luis Sousa
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: UPDATE problem
@ 2005-03-31 14:13 Luis Sousa <llsousa@ualg.pt>
parent: Luis Sousa <llsousa@ualg.pt>
1 sibling, 1 reply; 5+ messages in thread
From: Luis Sousa @ 2005-03-31 14:13 UTC (permalink / raw)
To: pgsql-odbc
Any of the snapshots available have this problems solved?
Luis Sousa wrote:
> Hi all,
>
> I'm using Postgresql 7.3.4-9 Debian binaries and ODBC 8.00.01.01, on
> Windows 2003 Server.
>
> Using ODBC, when the instruction
> PREPARE "_PLAN586fbb8"(int4, int4) as UPDATE "public"."plano" SET
> "alunosInscritos"=$1 WHERE "oid" = $2;EXECUTE "_PLAN586fbb8"(40,1676937)
>
> I get the following error:
> ERROR: parser: parse error at or near "=$" at character 84
>
> I changed from "alunosInscritos"=$1 to "alunosInscritos" = $1 and worked.
> Is there any workaround for this?
>
> Also, I thought, probably using an older version of ODBC driver could
> create a different SQL expression, but, when I tried to uninstall the
> driver from Add/Remove Programs, everything went ok, but on ODBC Data
> Sources -> Drivers, the driver still remains there.
> Then I installed 7.03.0200, but didn't write over the other driver?
> How can I deinstall the most recent driver and install an older one?
>
> Best regards,
> Luis Sousa
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: UPDATE problem
@ 2005-03-31 14:26 Miguel Juan <mjuan@cibal.es>
parent: Luis Sousa <llsousa@ualg.pt>
0 siblings, 0 replies; 5+ messages in thread
From: Miguel Juan @ 2005-03-31 14:26 UTC (permalink / raw)
To: Luis Sousa <llsousa@ualg.pt>; pgsql-odbc
Hello,
If you already have an existing PsqlOdbc instalation, you just need to copy
the psqlodbc.dll file (version 7.03.0200) in the "%WINDOWS%\system32\"
folder
Regards
Miguel Juan
----- Original Message -----
From: Luis Sousa
To: pgsql-odbc@postgresql.org
Sent: Thursday, March 31, 2005 4:13 PM
Subject: Re: [ODBC] UPDATE problem
Any of the snapshots available have this problems solved?
Luis Sousa wrote:
> Hi all,
>
> I'm using Postgresql 7.3.4-9 Debian binaries and ODBC 8.00.01.01, on
> Windows 2003 Server.
>
> Using ODBC, when the instruction
> PREPARE "_PLAN586fbb8"(int4, int4) as UPDATE "public"."plano" SET
> "alunosInscritos"=$1 WHERE "oid" = $2;EXECUTE "_PLAN586fbb8"(40,1676937)
>
> I get the following error:
> ERROR: parser: parse error at or near "=$" at character 84
>
> I changed from "alunosInscritos"=$1 to "alunosInscritos" = $1 and worked.
> Is there any workaround for this?
>
> Also, I thought, probably using an older version of ODBC driver could
> create a different SQL expression, but, when I tried to uninstall the
> driver from Add/Remove Programs, everything went ok, but on ODBC Data
> Sources -> Drivers, the driver still remains there.
> Then I installed 7.03.0200, but didn't write over the other driver?
> How can I deinstall the most recent driver and install an older one?
>
> Best regards,
> Luis Sousa
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
>
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: UPDATE problem
@ 2005-03-31 15:08 Tom Lane <tgl@sss.pgh.pa.us>
parent: Luis Sousa <llsousa@ualg.pt>
1 sibling, 1 reply; 5+ messages in thread
From: Tom Lane @ 2005-03-31 15:08 UTC (permalink / raw)
To: Luis Sousa <llsousa@ualg.pt>; +Cc: pgsql-odbc
Luis Sousa <llsousa@ualg.pt> writes:
> I'm using Postgresql 7.3.4-9 Debian binaries and ODBC 8.00.01.01, on
> Windows 2003 Server.
> I get the following error:
> ERROR: parser: parse error at or near "=$" at character 84
> I changed from "alunosInscritos"=$1 to "alunosInscritos" = $1 and worked.
> Is there any workaround for this?
Use PG 7.4 or later.
regards, tom lane
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: UPDATE problem
@ 2005-03-31 16:22 Luis Sousa <llsousa@ualg.pt>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 5+ messages in thread
From: Luis Sousa @ 2005-03-31 16:22 UTC (permalink / raw)
To: ; +Cc: pgsql-odbc
I'm using this version on my production server so and I'm not very
confortable to upgrade right now.
Is there any chance to implement this change on ODBC? Or, does version
7.00.xxx works without problems?
Best regards,
Luis Sousa
Tom Lane wrote:
>Luis Sousa <llsousa@ualg.pt> writes:
>
>
>>I'm using Postgresql 7.3.4-9 Debian binaries and ODBC 8.00.01.01, on
>>Windows 2003 Server.
>>
>>
>
>
>
>>I get the following error:
>>ERROR: parser: parse error at or near "=$" at character 84
>>
>>
>
>
>
>>I changed from "alunosInscritos"=$1 to "alunosInscritos" = $1 and worked.
>>Is there any workaround for this?
>>
>>
>
>Use PG 7.4 or later.
>
> regards, tom lane
>
>
>
>
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2005-03-31 16:22 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-31 13:32 UPDATE problem Luis Sousa <llsousa@ualg.pt>
2005-03-31 14:13 ` Luis Sousa <llsousa@ualg.pt>
2005-03-31 14:26 ` Miguel Juan <mjuan@cibal.es>
2005-03-31 15:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-03-31 16:22 ` Luis Sousa <llsousa@ualg.pt>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox