Bug 889 - Odbc select corrupts strings longer than 126 symbols.
Summary: Odbc select corrupts strings longer than 126 symbols.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data (show other bugs)
Version: 2.8.x
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-09-19 04:29 UTC by imperec
Modified: 2017-09-01 09:26 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Monodevelop solution for bur reproduction. (5.93 KB, application/zip)
2011-09-19 04:29 UTC, imperec

Description imperec 2011-09-19 04:29:14 UTC
Created attachment 416 [details]
Monodevelop solution for bur reproduction.

OS: OpenSuse i586
Odbc select returns corrupted strings if they are longer then 126 symbols.
Reproduction code in attachement. 
Bug not presented in mono-data-2.8.1-36.1
Bug presented in mono-data-2.8.2-0.2.3 and newer versions till latest nightly builds of mono-data(2.11).
// Runing test case.
# mono StringBugTestCase.exe

// Check insert.
mysql> use test
Database changed
mysql> SELECT str FROM test WHERE str LIKE "%";
| str                                                                                                                                          |
| qwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiopqwertyuiop |
1 row in set (0.00 sec)

Note You need to log in before you can comment on or make changes to this bug.