You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I open a transaction and do a SELECT statement, then start to process it, but inside this loop I do an another SELECT, the second query fails with busy buffer error.
Outside of transaction it works fine.
Expected result from both woTx() and wTx() functions:
Test1: 1 T1 a
Test2: 1 T2 a
Test2: 2 T2 b
Test2: 3 T2 c
Test1: 2 T1 b
Test2: 1 T2 a
Test2: 2 T2 b
Test2: 3 T2 c
Test1: 3 T1 c
Test2: 1 T2 a
Test2: 2 T2 b
Test2: 3 T2 c
Without transaction (woTx) it works fine.
With transaction (wTx) we got the busy buffer error.
Example code
CREATETABLETEST1(
`Id`INT AUTO_INCREMENT,
`Name`VARCHAR(50) NOT NULL DEFAULT "",
PRIMARY KEY(`Id`));
CREATETABLETEST2(
`Id`INT AUTO_INCREMENT,
`Name`VARCHAR(50) NOT NULL DEFAULT "",
PRIMARY KEY(`Id`));
INSERT INTO TEST1(`Name`) VALUES("T1 a"),("T1 b"),("T1 c");
INSERT INTO TEST2(`Name`) VALUES("T2 a"),("T2 b"),("T2 c");
Issue description
I open a transaction and do a SELECT statement, then start to process it, but inside this loop I do an another SELECT, the second query fails with busy buffer error.
Outside of transaction it works fine.
Expected result from both woTx() and wTx() functions:
Without transaction (woTx) it works fine.
With transaction (wTx) we got the busy buffer error.
Example code
Error log
Configuration
Driver version (or git SHA): 1.6.0
Go version: 1.19.1
Server version: 10.7.6-MariaDB-1:10.7.6+maria~deb10
Server OS: Developer machine: Windows 10 x64, DB server: Debian 10
The text was updated successfully, but these errors were encountered: