BIT and BIT VARYING
Posted: Fri 24 Apr 2009 14:04
Hello
We have moved over to pgDAC, and found some issues with BIT and BIT VARYING.
Look at the PostGreSQL manual 8.3:
http://www.postgresql.org/docs/8.3/inte ... e-bit.html
When creating table test, and then inserting values, this gives us an error when inserting.
CREATE TABLE test (a BIT(3), b BIT VARYING(5));
INSERT INTO test VALUES (B'101', B'00');
If I remove the B, it works fine:
INSERT INTO test VALUES ('101', '00');
Our previous freeware componants worked well with the "B", but with pgDAC it doesn't. We can remove the "B", but I need to first determine if this is an error, or does pgDAC specifically made it that "B" is not needed.
Kind regards
Michael Posthuma
We have moved over to pgDAC, and found some issues with BIT and BIT VARYING.
Look at the PostGreSQL manual 8.3:
http://www.postgresql.org/docs/8.3/inte ... e-bit.html
When creating table test, and then inserting values, this gives us an error when inserting.
CREATE TABLE test (a BIT(3), b BIT VARYING(5));
INSERT INTO test VALUES (B'101', B'00');
If I remove the B, it works fine:
INSERT INTO test VALUES ('101', '00');
Our previous freeware componants worked well with the "B", but with pgDAC it doesn't. We can remove the "B", but I need to first determine if this is an error, or does pgDAC specifically made it that "B" is not needed.
Kind regards
Michael Posthuma