failed Assert() in utf8_and_iso8859_1.c
От | Karel Zak |
---|---|
Тема | failed Assert() in utf8_and_iso8859_1.c |
Дата | |
Msg-id | 20020912172906.H15044@zf.jcu.cz обсуждение исходный текст |
Ответы |
Re: failed Assert() in utf8_and_iso8859_1.c
|
Список | pgsql-hackers |
Hi, I have file with this code: ---------- \l SHOW SERVER_ENCODING; SHOW CLIENT_ENCODING; --- Languages table --- CREATE TABLE lang (--- 'id' is here lang abbreviation---id varchar(3) PRIMARY KEY,name varchar(16) NOT NULL --- lang fullname ); COPY lang FROM stdin; EN English DE German JP Japanese \. ---------- and now I use latest PostgreSQL from CVS: $ psql anydb < langs.sql List of databases Name | Owner | Encoding -----------+----------+-----------anydb | zakkr | UNICODEtemplate0 | postgres | SQL_ASCIItemplate1 | postgres | SQL_ASCIItest | postgres | SQL_ASCII (4 rows) server_encoding -----------------UNICODE (1 row) client_encoding -----------------LATIN1 (1 row) NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'lang_pkey' for table 'lang' CREATE TABLE server closed the connection unexpectedly This probably means the server terminated abnormally before or while processingthe request. lost synchronization with server, resetting connection connection to server was lost In the server log file is: TRAP: FailedAssertion("!(len > 0)", File: "utf8_and_iso8859_1.c", Line: 45) If I use INSERT instead COPY it's OK. Karel -- Karel Zak <zakkr@zf.jcu.cz>http://home.zf.jcu.cz/~zakkr/C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
В списке pgsql-hackers по дате отправления: