Subject | Creating domain with check and character set |
---|---|
Author | Rick Debay |
Post date | 2006-11-16T16:57:05Z |
This fails
CREATE DOMAIN D_TEST AS
CHAR(3)
CHECK (
VALUE IN ('T','E','S')
)
CHARACTER SET ASCII COLLATE ASCII
With the message
ISC ERROR CODE:335544569
ISC ERROR MESSAGE:
Dynamic SQL Error
SQL error code = -104
Token unknown - line 6, char 2
CHARACTER
These work
CREATE DOMAIN D_TEST AS
CHAR(3)
CHECK (
VALUE IN ('T','E','S')
)
COLLATE ASCII (as long as the default charset is ASCII, of course)
CREATE DOMAIN D_TEST AS
CHAR(3)
CHARACTER SET ASCII COLLATE ASCII
So it seems that FB 1.5 and FB 2.0 can't have a domain with both CHECK
and CHARACTER SET.
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.
CREATE DOMAIN D_TEST AS
CHAR(3)
CHECK (
VALUE IN ('T','E','S')
)
CHARACTER SET ASCII COLLATE ASCII
With the message
ISC ERROR CODE:335544569
ISC ERROR MESSAGE:
Dynamic SQL Error
SQL error code = -104
Token unknown - line 6, char 2
CHARACTER
These work
CREATE DOMAIN D_TEST AS
CHAR(3)
CHECK (
VALUE IN ('T','E','S')
)
COLLATE ASCII (as long as the default charset is ASCII, of course)
CREATE DOMAIN D_TEST AS
CHAR(3)
CHARACTER SET ASCII COLLATE ASCII
So it seems that FB 1.5 and FB 2.0 can't have a domain with both CHECK
and CHARACTER SET.
Disclaimer: This message (including attachments) is confidential and may be privileged. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. RxStrategies, Inc. shall not be liable for the improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. RxStrategies, Inc. does not guarantee that the integrity of this communication has been maintained nor that this communication is free from viruses, interceptions or interference.