dbTalk Databases Forums  

[BUGS] length checking and encoding in postgresql 8.1.4

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] length checking and encoding in postgresql 8.1.4 in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default [BUGS] length checking and encoding in postgresql 8.1.4 - 06-07-2006 , 06:58 PM






I got a field with a datatype of varchar(40) in one of my table

client_encoding = LATIN9

When I use COPY to transfer records to my table
I got an error message "Error: value too long for type character varying(40)"

When I check the offending record it seems that one of the character
in the field contains N (with a wave-like at top) . The actual length
of the string is 40 so it should be accepted considering the fact that
it is properly translated as that character mentioned earlier.

So far other Pgsql 8.1.3 accepts the record.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.