number(1) as boolean
421258May 13 2004 — edited May 17 2004I'm converting a db from MS SQL to Oracle 9. Some of the tables have bit fields used as booleans that got mapped to numeric(1). Everything seemed ok until I tried to run the application. The application is written in VB6 and the code is checking these numeric(1) fields in an if statement comparing the value of the column to True. When I examine the value of the column, it has a value of either 0 or 1 and the comparison to True always returns false. Is there a way that I can tell the ole provider to interrupt numeric(1) columns as boolean so I don't have to change the code. Thanks for any suggestions.
Eric Lyons