Inconsistent domain's constraint validation in PSQL
---------------------------------------------------

                 Key: CORE-3545
                 URL: http://tracker.firebirdsql.org/browse/CORE-3545
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.5.0, 3.0 Initial
            Reporter: Adriano dos Santos Fernandes


The domain's check constraint validation is done using the type of the 
expression, instead of the type of the variable.

Test case:

create domain dx varchar(2) check (value < '5')!

-- No error: ok
execute block as
  declare v1 dx = '40';
begin
end!

-- Error: not ok - validation error for variable V1, value "40"
execute block as
  declare v1 dx = 40;
begin
end!

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

        

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to