|
Re: Multibyte char encoding atttypmod weirdness: msg#00117db.postgresql.bugs
"Huaxin WANG" <wanghx@xxxxxxxxxxxxxxxxx> writes: > When locale is set to multibyte char encoding languages, > such as ja_JP.eucjp, and char encoding set to EUC_JP, for the char(20) > columns (attributes), the libpq ((PGresult *)res)->attDescs[0].atttypmod > returned by PQfmod(res, 0) is not correct. It's neither 20, nor 20+4 as > reported in the hackers' mail list [1], but something varying (which I > failed > to figure out). In my specific case, it's 25. I don't think so. A column declared as char(N) *will* have an atttypmod of N+4. The actual physical length in bytes of a column entry might be more, though, since we measure N in terms of characters not bytes. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Bugs with rules on views/tables: permission denied: 00117, Donald Fraser |
|---|---|
| Next by Date: | Re: Bugs with rules on views/tables: permission denied: 00117, Donald Fraser |
| Previous by Thread: | Multibyte char encoding atttypmod weirdnessi: 00117, Huaxin WANG |
| Next by Thread: | Re: Multibyte char encoding atttypmod weirdness: 00117, Huaxin WANG |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |