truncated string problem - Mailing list pgsql-general

From Rob Brown-Bayliss
Subject truncated string problem
Date
Msg-id 1059511147.10317.16.camel@musicbox
Whole thread Raw
Responses Re: truncated string problem
Re: truncated string problem
List pgsql-general
Hi, Running the following SQL via pypgsql:

INSERT INTO "songs" ("p_key", "title", "artist", "date", "album",
"tracknumber", "time", "file") VALUES
("ea0e89f596619af1837f424c0767ffd9", "Sugar Mountain", "Neil Young",
"1979", "Live Rust", "1", "302.226666667",
"/oggs/Neil_Young-Sugar_Mountain.ogg");

I get this error:

Execute failed
ERROR:  Attribute 'ea0e89f596619af1837f424c0767ffd' not found
Rolling back a transacton

followed by this:

libpq.Warning: NOTICE:  identifier "ea0e89f596619af1837f424c0767ffd9"
will be truncated to "ea0e89f596619af1837f424c0767ffd"


the p_key column is a varchar with a length of 64, and if I cut and
paste the SQL string into phpPgAdmin it inserts without a problem.

Any clues?



--

*  Rob Brown-Bayliss
*  =================
*      zoism.org



pgsql-general by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Re: Postgresql Hosting
Next
From: Eric Clark
Date:
Subject: Re: truncated string problem