mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 22:57:45 +00:00
Merge pull request #857 from takhlaq/ThreePointThree
db: remove extraneous comma from fc prepared statement
This commit is contained in:
commit
1406549ced
2 changed files with 8 additions and 8 deletions
2
deps/mysqlConnector/Connection.cpp
vendored
2
deps/mysqlConnector/Connection.cpp
vendored
|
@ -237,7 +237,7 @@ std::shared_ptr< Mysql::PreparedStatement > Mysql::Connection::prepareStatement(
|
|||
throw std::runtime_error( "Could not init prepared statement: " + getError() );
|
||||
|
||||
if( mysql_stmt_prepare( stmt, sql.c_str(), static_cast< unsigned long >( sql.size() ) ) )
|
||||
throw std::runtime_error( "Could not prepare statement: " + getError() );
|
||||
throw std::runtime_error( "Could not prepare statement: " + sql + "\n" + getError() );
|
||||
|
||||
return std::make_shared< PreparedStatement >( stmt, shared_from_this() );
|
||||
}
|
||||
|
|
|
@ -373,7 +373,7 @@ void Sapphire::Db::ZoneDbConnection::doPrepareStatements()
|
|||
"UPDATE freecompany SET MasterCharacterId = ?, FcName = ?, FcTag = ?, FcCredit = ?, FcCreditAccumu = ?,"
|
||||
"FcRank = ?, FcPoint = ?, ReputationList = ?, CrestId = ?,"
|
||||
"CreateDate = ?, GrandCompanyID = ?, FcStatus = ?, FcBoard = ?, "
|
||||
" FcMotto = ?, ActiveActionList = ?, , ActiveActionLeftTimeList = ?, StockActionList = ? "
|
||||
"FcMotto = ?, ActiveActionList = ?, ActiveActionLeftTimeList = ?, StockActionList = ? "
|
||||
"WHERE FreeCompanyId = ?;",
|
||||
CONNECTION_BOTH );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue