Icon View Incident Report

Minor Minor
Reported By: Lucian Radulescu
Reported On: 1/19/2012
For: Version 2.07 Build 1
# 3537 DEFAULT Expressions for BYTE Columns Cause Parsing Error

How does one set a default value for a BYTE field? I thought the following should work, however it gives:

Error #700 An error was found in the default column expression at line 1 and column 1 (Expected NULL, Byte, GUID, or VarByte expression but instead found '01')

ALTER TABLE "table" ALTER COLUMN "ByteColumn" AS BYTE(1) DEFAULT X'01' NOT NULL

Workaround:

ALTER TABLE "table" ALTER COLUMN "ByteColumn" AS BYTE(1) DEFAULT cast(X'01' as byte) NOT NULL



Comments Comments and Workarounds
Thanks to John Hay for the workaround.


Resolution Resolution
Fixed Problem on 1/20/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