martinrybak / SQLClient

Native Microsoft SQL Server client for iOS
http://objcsharp.wordpress.com/2013/10/15/an-open-source-sql-server-library-for-ios/
MIT License
124 stars 51 forks source link

NULL columns #16

Closed ehnajafi closed 7 years ago

ehnajafi commented 10 years ago

If a column has null values, the client will exit code and will report an error code.

I get columns number out of range for multiple columns. I tried the following queries:

SELECT * FROM myTable; <======== Column out of range error

SELECT tableID FROM myTable <====== This worked.

SELECT tableID, name FROM myTable <======= Failed with Column out of range error (There are no Null's in any of the columns.)

Is there a way around this issue?

Thanks, Hamid

martinrybak commented 7 years ago

Please try out the types branch. This issue should be fixed.