Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebird 2.0 database via ODBC driver 2.0 build 148 64bit -- null values in database throws arithemtic overflow exception [ODBC85] #84

Closed
firebird-automations opened this issue Sep 21, 2010 · 7 comments

Comments

@firebird-automations
Copy link

Submitted by: jaffar chiosa (cjaffar)

Attachments:
OdbcFb.zip

Votes: 1

My .net application works fine on 32-bit windows operating systems, but gives 'arithmetic exception error' when uploaded to 64-bit windows (tried and tested on windows 7 and windows 2008 server with similar results) operating system. After much investigation, I have narrowed the problem with the ODBC driver. Can someone please fix the bug::

1. When using the datareader (while (datareader.read()), if the row has a null value it breaks, with an arithmetic overflow exception. I proved it also when I trap this code in a {try catch}.
2. Queries run fine in all tables that don't have a null value or if I force to return the "" (empty) string in a select command (select case when veh_model is null the '' else veh_model). This query is not pleasant, especially when I know I have a massive database to work with and changing a huge application into .net where I would like to reuse the previously working queries.
3. To reproduce the error, you may run a helloworld application on a small firebird database with one column having a null value. the operating system is windows (any version) 64 bit.

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

assignee: Alexander Potapchenko [ lightfore ]

@firebird-automations
Copy link
Author

Commented by: @alexpotapchenko

Please test it (Driver in attachment).

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

Attachment: OdbcFb.zip [ 11792 ]

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.0 RC2 [ 10320 ]

@firebird-automations
Copy link
Author

Commented by: jaffar chiosa (cjaffar)

thanks alex for the update. however, i get error 193 when i try to connect using that dll.

@firebird-automations
Copy link
Author

Commented by: @alexpotapchenko

It is strange.. Try to use the full installer from here - ODBC60.

@firebird-automations
Copy link
Author

Modified by: @alexpotapchenko

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants