Closed BKSoftCraft closed 1 year ago
Peachpie.Library.PDO.PDOException
HResult=0x80131500
Message=This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse
Source=Peachpie.Library.PDO
StackTrace:
at Peachpie.Library.PDO.PDO.HandleError(ErrorInfo error)
at Peachpie.Library.PDO.PDOStatement.HandleError(ErrorInfo error)
at Peachpie.Library.PDO.PDOStatement.HandleError(Exception exception)
at Peachpie.Library.PDO.PDOStatement.execute(PhpArray input_parameters)
at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at <Root>.index_php.<Main>(Context <ctx>, PhpArray <locals>, Object this, RuntimeTypeHandle <self>) in D:\vs\TestWeb\TestWeb\TestWeb\TestWeb\index.php:line 23
at <Root>.index_php.<Main>`0(Context <ctx>, PhpArray <locals>, Object this, RuntimeTypeHandle <self>)
at Pchp.Core.Context.ScriptInfo.Evaluate(Context ctx, PhpArray locals, Object this, RuntimeTypeHandle self)
at Peachpie.AspNetCore.Web.RequestContextCore.ProcessScript(ScriptInfo script, String path_info)
this work well in core php but in peachpie it throw error. Error : Peachpie.Library.PDO.PDOException: 'This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse Is any solution for this ?
this work well in core php but in peachpie it throw error. Error : Peachpie.Library.PDO.PDOException: 'This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse Is any solution for this ?
please note, PeachPie is not PHP. It is a new implementation, it does not use anything from "Core" PHP
Peachpie.Library.PDO.PDOException HResult=0x80131500 Message=This MySqlConnection is already in use. See https://fl.vu/mysql-conn-reuse Source=Peachpie.Library.PDO StackTrace: at Peachpie.Library.PDO.PDO.HandleError(ErrorInfo error) at Peachpie.Library.PDO.PDOStatement.HandleError(ErrorInfo error) at Peachpie.Library.PDO.PDOStatement.HandleError(Exception exception) at Peachpie.Library.PDO.PDOStatement.execute(PhpArray input_parameters) at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at <Root>.index_php.<Main>(Context <ctx>, PhpArray <locals>, Object this, RuntimeTypeHandle <self>) in D:\vs\TestWeb\TestWeb\TestWeb\TestWeb\index.php:line 23 at <Root>.index_php.<Main>`0(Context <ctx>, PhpArray <locals>, Object this, RuntimeTypeHandle <self>) at Pchp.Core.Context.ScriptInfo.Evaluate(Context ctx, PhpArray locals, Object this, RuntimeTypeHandle self) at Peachpie.AspNetCore.Web.RequestContextCore.ProcessScript(ScriptInfo script, String path_info)
thank you for the stack trace; seems like a bug. To test it, we would need the test database as well.
//This is database data which i used for testing
CREATE TABLE `00test` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`value` decimal(20,3) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4
// I have same issue before with id #990 but that test work fine.
This database file test1.zip
awesome, thanks!
Thanks for the detailed test case. Using two or more pdo statements has been fixed.
Preparing release soon.