From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Postgres Admin <postgres@productivitymedia.com>
Cc: pgsql-php@postgresql.org, Sql-Postgre <pgsql-sql@postgresql.org>
Subject: Re: ERROR: unterminated quoted string... help
Date: Tue, 17 May 2005 13:27:12 -0500
Message-ID: <1116354432.22291.136.camel@state.g2switchworks.com> (raw)
In-Reply-To: <428A34D9.5000700@productivitymedia.com>
References: <DCD4903594CCF34CAFE200BDF3448D8D5B291A@tshuscodenmbx01.ERF.THOMSON.COM>
<20050517170636.GC12405@phlogiston.dyndns.org>
<428A2E81.2060501@pobox.com>
<428A34D9.5000700@productivitymedia.com>
On Tue, 2005-05-17 at 13:15, Postgres Admin wrote:
> Hi
>
> I'm trying to insert encrypted data into the database and I'm noticing
> error dealing with quotes. Below is the error print out...
>
> suggestions and/or at least point me in the direction to find a solution,
>
> Thanks,
> J
>
>
>
> INSERT INTO sample.users (user_name, first_name) VALUES
> ('jokers', '=ïµiF!¶6(ÖŸã¾óˆÌ‘'-Iw‰iDÖiJÐÿ† %')
>
> Warning: pg_query() [function.pg-query]: Query failed: ERROR:
> unterminated quoted string at or near "'=ïµi" at character 68 in
> /usr/local/apache2/htdocs/php/5/Theirry_DB.php on line 162
Use a bytea field and use pg_escape_bytea() to prepare the data for
insertion.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: smarlowe@g2switchworks.com, postgres@productivitymedia.com
Subject: Re: ERROR: unterminated quoted string... help
In-Reply-To: <1116354432.22291.136.camel@state.g2switchworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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