"Malformed string" instead of key value in PK violation error message
---------------------------------------------------------------------

                 Key: CORE-5847
                 URL: http://tracker.firebirdsql.org/browse/CORE-5847
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.3, 2.5.8, 4.0 Alpha 1, 3.0.2, 2.5.7, 3.0.1, 2.5.6, 
3.0.0, 4.0 Initial, 2.5.5, 2.5.4, 2.5.3 Update 1, 2.5.3
            Reporter: Vlad Khorsun
            Priority: Minor


1. Connect with UTF8 charset:

firebird>isql -ch utf8

SQL> recreate table t (uid char(16) character set octets primary key);
SQL> commit;
SQL>
SQL>
SQL> insert into t values (GEN_UUID());
SQL> select * from t;

UID
================================
E5FCB3D11EB7472792F4819B06CB7099

SQL> insert into t select uid from t;
Statement failed, SQLSTATE = 23000
violation of PRIMARY or UNIQUE KEY constraint "INTEG_2" on table "T"
-Malformed string



2. Connect with non-UTF8 charset:

firebird>isql -ch win1251 

SQL> insert into t select uid from t;
Statement failed, SQLSTATE = 23000
violation of PRIMARY or UNIQUE KEY constraint "INTEG_2" on table "T"
-Problematic key value is ("UID" = x'E5FCB3D11EB7472792F4819B06CB7099')


-- 
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

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to