truncated string problem

Rob Brown-Bayliss <[email protected]> 30 Jul 2003 08:38:47 +1200
Newsgroups gmane.comp.db.postgresql.general,gmane.comp.python.db.pypgsql.user
Message-ID <1059511147.10317.16.camel@musicbox>
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



---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend