Skip to content

Commit b00f38f

Browse files
mysql exception forward errorNo to SqlError (#2427)
1 parent 11d9f4d commit b00f38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orm_lib/src/mysql_impl/MysqlConnection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ void MysqlConnection::outputError()
532532
{
533533
// TODO: exception type
534534
auto exceptPtr = std::make_exception_ptr(
535-
SqlError(mysql_error(mysqlPtr_.get()), sql_));
535+
SqlError(mysql_error(mysqlPtr_.get()), sql_, errorNo, 0));
536536
exceptionCallback_(exceptPtr);
537537
exceptionCallback_ = nullptr;
538538

0 commit comments

Comments
 (0)