alexbrainman / odbc

odbc driver written in go
BSD 3-Clause "New" or "Revised" License
352 stars 140 forks source link

use SQL_WVARCHAR when parameter type is SQL_VARCHAR #82

Closed tpng closed 7 years ago

tpng commented 7 years ago

Since the underlying data is already converted to UTF16, passing the data as SQL_VARCHAR will cause select * from table where column = ? to not return any result when column is of type varchar.

alexbrainman commented 7 years ago

@tpng I do not see why this change is required. Please create a new issue with an example program so I can reproduce your problem here. Thank you.

Regardless this change need a new test.

Alex

tpng commented 7 years ago

@alexbrainman Filed #83