Icon View Incident Report

Serious Serious
Reported By: Lucian Radulescu
Reported On: 2/15/2012
For: Version 2.07 Build 1
# 3546 Adding a Check Constraint that References a UDF Causes Prepare Error

I am trying to add a check constraint to a table. The check looks like the following. I'm getting this error when executing the ALTER TABLE:

ElevateDB Error #901 An error occurred with the routine at line 1 and column 48 (An attempt was made to execute the unprepared procedure dateadd)

(BirthDate>=DATE '1930-01-01') AND (BirthDate<=DateAdd('YEAR',-18,CURRENT_TIMESTAMP))

BirthDate is a column
DateAdd is a user function



Comments Comments
This problem occurred when only the check constraint was being added/altered for one or more columns. If the structure columns were altered also (change the data type, length, etc.), then the problem wouldn't occur.


Resolution Resolution
Fixed Problem on 2/18/2012 in version 2.08 build 1


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB LCL Standard with Source
ElevateDB PHP Standard
ElevateDB PHP Standard with Source
ElevateDB PHP Trial
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image