[ODBC-251] Error when updating blob field Created: 2019-05-20 Updated: 2019-08-01 |
|
| Status: | Open |
| Project: | MariaDB Connector/ODBC |
| Component/s: | None |
| Affects Version/s: | 3.1.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Luis A S C Junior | Assignee: | Lawrin Novitsky |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | regression | ||
| Environment: |
ODBC 3.1.1 with MariaDB 10.3.15 under Windows Server 2008 |
||
| Attachments: |
|
| Description |
|
I use a function to update a BLOB field working for more then teen years with MyODBC 3.51.12, now i have try with MariaODBC 3.1.1, but a error has show. I have using Windows Server 2008 32 bits (IIS 7.0) with Classic ASP and MariaODBC Connector 3.1.1. The MariaDB version is 10.3.15 64 bits running in other server, into Windows 10 64 bits. In have installed the MyODBC versions 3.51.12, 5.1.13, 5.2.7 and 5.3.6. ===================================== With MariaODBC 3.1.1, this is a error: ========================== How to repeat:
CREATE TABLE `testtable` (
======================== <% ;SERVER=127.0.0.1;PORT=3306;DATABASE=test;UID=testuser;PWD=testpass;OPTION=16427" sql="delete from testtable where id=1" sql="insert into testtable (id,file) values (1,'')" Const adOpenStatic = 3 Set Rs = Server.CreateObject("ADODB.Recordset") Rs.CursorType = adOpenStatic xsource="select file from testtable where id=1" Const adTypeBinary = 1 Dim BinaryStream BinaryStream.Type = adTypeBinary BinaryStream.Open BinaryStream.LoadFromFile "image.jpg" ReadBinaryFile = BinaryStream.Read RS("file").AppendChunk ReadBinaryFile set ReadBinaryFile=nothing BinaryStream.close connec.close END TEST.ASP Save any small image file in same folder of test.asp with name image.jpg and execute the test.asp in browser for run the application. The error occurs in line: |
| Comments |
| Comment by Lawrin Novitsky [ 2019-06-03 ] |
|
Thank you for your report. This can be a duplicate of the ODBC-102. But there mysql's connector reportedly works. And in your case only some its old version works. Would it be possible to provide ODBC trace for your issue? |
| Comment by Lawrin Novitsky [ 2019-06-13 ] |
|
The workaround would be to add id field to the field list in the 'select' statement |
| Comment by Lawrin Novitsky [ 2019-06-19 ] |
|
I am actually not sure if we should fix this. |