Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
2.0.11
-
None
-
None
-
Windows 2008 R2 64 bits, IIS 7.5, ASP Classic
MariaDB 10.1.16
Description
There is a simple schema "test", and a table "testtable", and there is only column "testc" for char(10).
There is only one row in test.testtable, and the value is '' (not null)
when the asp use recordset to retrive the row for test,testtable,like this
sql = "select testc from test.testtable"
ds = conn.execute(sql)
it always return
[ma-2.0.11][mariadb-10.1.16] Invalid string or buffer length
I need to change the sql statement to
sql = "select (case testc when '' then NULL else testc end) as testc from test.testtable"
ds = conn.execute(sql)
It can be worked, why doesnt return '' for this case?
Thanks.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 2.0.12 [ 22037 ] | |
Resolution | Duplicate [ 3 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB connectors [ 76911 ] | MariaDB v3 [ 84027 ] |
Workflow | MariaDB v3 [ 84027 ] | MariaDB v4 [ 135403 ] |
Thank you for your bug report!
Most probably it is a duplicate of
ODBC-51, but I will have to verify that