Regression: Can not restore database with table contains field CHAR(n) and UTF8
character set
---------------------------------------------------------------------------------------------
Key: CORE-5304
URL: http://tracker.firebirdsql.org/browse/CORE-5304
Project: Firebird Core
Issue Type: Bug
Affects Versions: 3.0.1, 4.0 Alpha 1
Environment: Windows 7 x64, Firebird 3.0.1.32552
Reporter: Simonov Denis
databases.conf contains
test = d:\fb\fb30\data\test.fdb
{
DefaultDbCachePages = 8K
}
In isql execute
set names utf8;
set sql dialect 3;
create database '127.0.0.1/3051:test'
user 'SYSDBA' password 'masterkey'
page_size 8192
default character set utf8;
create table t(
name char(10)
);
insert into t(name) values(null);
commit;
-----------------------
gbak -b -g -V -user SYSDBA -pas masterkey -se 127.0.0.1/3051:service_mgr test
d:\fb\fb30\data\test.dmp
work wothout error
rename test.fdb
----------------------
gbak -c -V -user SYSDBA -pas masterkey -st TD -se 127.0.0.1/3
051:service_mgr d:\fb\fb30\data\test.dmp test
gbak: time delta
gbak: 0.000 0.000 opened file d:\fb\fb30\data\test.dmp
gbak: 0.001 0.001 transportable backup -- data in XDR format
gbak: 0.001 0.000 backup file is compressed
gbak: 0.001 0.000 backup version is 10
gbak: 0.232 0.231 created database test, page_size 8192 bytes
gbak: 0.237 0.004 started transaction
gbak: ERROR:arithmetic exception, numeric overflow, or string truncation
gbak: ERROR: string right truncation
gbak: ERROR: expected length 10, actual 40
gbak: ERROR: gds_$send failed
gbak: ERROR: Exiting before completion due to errors
gbak:Exiting before completion due to errors
If field name has type varchar(10) error not reproduced.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel