4

Does the new XE2 dbExpress still have problems using Boolean fields?

dataol
  • 999
  • 3
  • 19
  • 42
Jlouro
  • 4,515
  • 9
  • 60
  • 91

3 Answers3

2

The best way is to use a domain

CREATE DOMAIN BOOL AS
SMALLINT
DEFAULT 0
CHECK (value in (0,1) or value is null);

Regards

cadetill
  • 1,552
  • 16
  • 24
1

AFAIK Firebird doesn't have BOOLEAN types.

Atlas
  • 1,353
  • 5
  • 19
  • 32
0

Create a Char(1) field. Set values "Y" or "N"

http://www.firebirdfaq.org/faq12/

dataol
  • 999
  • 3
  • 19
  • 42