invalid command \

From: Jan Poslusny <pajout(at)gingerall(dot)cz>
To: pgsql-general(at)postgresql(dot)org
Subject: invalid command \
Date: 2003-11-05 17:42:50
Message-ID: 3FA9369A.4020806@gingerall.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hallo,
we runs PostgreSQL 7.3.4 on RedHat 9. I initialized dbcluster with
--locale=cs_CZ.UTF-8 and created database with --encoding=unicode. But
following script generates error:
-- -*- coding: iso-8859-2 -*-
set client_encoding to LATIN2;
create table t (txt text);
begin;
--inserted character is latin small letter r with caron, coded in iso 8859-2
insert into t values ('ř');
insert into t values ('\\@');
commit;
-- end of script
, generates
SET
CREATE TABLE
BEGIN
psql:test.sql:7: invalid command \
psql:test.sql:9: ERROR: parser: unterminated quoted string at or near "'
commit;" at character 52
. I think this is a bug, because the script is syntactically OK and work
fine on database with server_encoding=latin2.

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2003-11-05 17:49:06 Re: Using SUBSELECT in CHECK expressions
Previous Message Tom Lane 2003-11-05 17:38:13 Re: Using SUBSELECT in CHECK expressions