| From: | Zeljko Trogrlic <zeljko(at)post(dot)hinet(dot)hr> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Column name case conversion |
| Date: | 2000-09-04 13:02:41 |
| Message-ID: | 4.1.20000904145653.01847008@pop.tel.hr |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello,
I'm getting strange length results for columns with UNICODE data.
I entered following string into database:
abcüäöèæ
First three characters are ASCII, second three are German and third three
are Croatian.
When I execute:
select name, length(name), character_length(name), octet_length(name)
from location
where id = 4
I get:
name = abcüäöèæ (9 characters)
length = 5
character_length = 5
octet_length = 9
OK, maybe my UNICODE is not setup well, but length and character_length
must be 9. I guess octet:length should be at least 12 to 15 (in case
UNICODE is OK).
v
Zeljko Trogrlic
____________________________________________________________
Aeris d.o.o.
Sv. Petka 60 b, HR-31000 Osijek, Croatia
Tel: +385 (31) 53 00 15
Email: mailto:zeljko(at)post(dot)hinet(dot)hr
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Enrico Comini | 2000-09-04 13:03:03 | Test |
| Previous Message | Tamsin | 2000-09-04 12:53:53 | permissions & foreign keys |