pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Problem with odbc.sql 2+ messages / 2 participants [nested] [flat]
* Problem with odbc.sql @ 2003-04-04 10:21 alain.bruneau@acoss.fr 0 siblings, 1 reply; 2+ messages in thread From: alain.bruneau@acoss.fr @ 2003-04-04 10:21 UTC (permalink / raw) To: pgsql-general@postgresql.org Hi. I'm trying to install psqlodbc-7.2.5 driver. I have some trouble with odbc.sql shell script. test=# CREATE OR REPLACE FUNCTION "char"(integer) RETURNS text AS ' test'# SELECT chr($1); test'# ' LANGUAGE SQL; ERROR: parser: parse error at or near "OR" test=# CREATE FUNCTION "char"(integer) RETURNS text AS ' test'# SELECT chr($1); test'# ' LANGUAGE SQL; ERROR: parser: parse error at or near "sql" Perhaps due to my Postgresql version : postgresql-7.1.2.0 Thanks you for your help. Regards, Alain. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with odbc.sql @ 2003-04-04 11:32 Richard Huxton <dev@archonet.com> parent: alain.bruneau@acoss.fr 0 siblings, 0 replies; 2+ messages in thread From: Richard Huxton @ 2003-04-04 11:32 UTC (permalink / raw) To: alain.bruneau@acoss.fr; pgsql-general@postgresql.org On Friday 04 Apr 2003 11:21 am, alain.bruneau@acoss.fr wrote: > Hi. > > I'm trying to install psqlodbc-7.2.5 driver. > > I have some trouble with odbc.sql shell script. > > test=# CREATE OR REPLACE FUNCTION "char"(integer) RETURNS text AS ' > test'# SELECT chr($1); > test'# ' LANGUAGE SQL; > ERROR: parser: parse error at or near "OR" I think CREATE OR REPLACE is a recent thing. > test=# CREATE FUNCTION "char"(integer) RETURNS text AS ' > test'# SELECT chr($1); > test'# ' LANGUAGE SQL; > ERROR: parser: parse error at or near "sql" Do you not need to quote the "SQL"? > Perhaps due to my Postgresql version : postgresql-7.1.2.0 -- Richard Huxton ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-04-04 11:32 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2003-04-04 10:21 Problem with odbc.sql alain.bruneau@acoss.fr 2003-04-04 11:32 ` Richard Huxton <dev@archonet.com>
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