Skip to content

Commit

Permalink
refactor: remove fetchcolumn
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed Aug 16, 2024
1 parent 60c703f commit ef485e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion include/superior_mysqlpp/low_level/dbdriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@ namespace SuperiorMySqlpp { namespace LowLevel
{
if (mysql_stmt_fetch_column(statementPtr, bindings, column, offset))
{
throw MysqlInternalError("Failed to fetch statement's column! Invalid column number!");
throw MysqlInternalError("Failed to fetch statement's column!", mysql_stmt_error(statementPtr), mysql_stmt_errno(statementPtr));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,6 @@ namespace SuperiorMySqlpp
return ok;
}

bool fetchColumn()
{
this->statement.fetchColumn();
engageNullables();
return true;
}

public:
/**
* Allows sending data for long enough parameters in multiple chunks (through successive calls).
Expand Down

0 comments on commit ef485e2

Please sign in to comment.