Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The insert failed because a column definition includes validation constraints. validation error for variable [CORE3038] #3419

Closed
firebird-automations opened this issue Jun 11, 2010 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alex Truhin (atruhin)

SET SQL DIALECT 3;
SET NAMES UTF8;
CREATE DATABASE 'Base\Test.fdb' USER 'SYSDBA' PASSWORD '1' DEFAULT CHARACTER SET UTF8;

CREATE DOMAIN MONEY AS NUMERIC(15,4);
commit;

CREATE TABLE CL_CASHPRICE (ID INTEGER NOT NULL, PRICE MONEY NOT NULL);
commit;

SET TERM ^ ;
create procedure TESTP (I_ID INTEGER, I_PRICE type of column CL_CASHPRICE.PRICE)
as
declare variable GOODSPRICE MONEY;
begin
GOODSPRICE = NULL;
if (:GOODSPRICE is not NULL)
then GOODSPRICE = 6;
end^
SET TERM ; ^
commit;

execute procedure TESTP(1, 6);
commit;

Commits: 72d9063 ab834d2

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC3 [ 10381 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 3.0 Initial [ 10301 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment