Error message "malformed string' is issued instead of "expected: N, actual : M" 
when UTF-8 charset is used and default value for declared column is greater 
than this column length
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: CORE-6415
                 URL: http://tracker.firebirdsql.org/browse/CORE-6415
             Project: Firebird Core
          Issue Type: Bug
          Components: Charsets/Collation, Engine
    Affects Versions: 3.0.6, 4.0 Beta 2
            Reporter: Pavel Zotov


recreate table test(nm varchar(1) character set utf8 default '€€' not null);

Output:
-------------
Statement failed, SQLSTATE = 22000
Malformed string

Expected:
-------------
somewhat like 
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 1, actual 2

Checked on WI-V3.0.7.33372; WI-V4.0.0.2225.
Ticket created after discussion with Adriano.

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

       


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to