mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-05 02:07:46 +00:00
Rest server queries updated
This commit is contained in:
parent
7e2770a536
commit
cbd5a9d943
1 changed files with 3 additions and 5 deletions
|
@ -38,11 +38,10 @@ namespace Core {
|
||||||
void PlayerMinimal::load( uint32_t charId )
|
void PlayerMinimal::load( uint32_t charId )
|
||||||
{
|
{
|
||||||
|
|
||||||
Core::Db::PreparedStmtScopedPtr stmt( g_charaDb.getPreparedStatement(
|
auto stmt = g_charaDb.getPreparedStatement( Db::CharaDbStatements::CHAR_SEL_LOAD_MINIMAL );
|
||||||
Core::Db::CharaDbStatements::CHAR_SEL_LOAD_MINIMAL ) );
|
|
||||||
|
|
||||||
stmt->setUInt( 1, charId );
|
stmt->setUInt( 1, charId );
|
||||||
Mysql::PreparedResultSetScopedPtr res( g_charaDb.query( stmt.get() ) );
|
auto res = g_charaDb.query( stmt );
|
||||||
|
|
||||||
if( !res->next() )
|
if( !res->next() )
|
||||||
return;
|
return;
|
||||||
|
@ -224,8 +223,7 @@ namespace Core {
|
||||||
// "HomePoint, StartTown, Discovery, HowTo, QuestCompleteFlags, Unlocks, QuestTracking, "
|
// "HomePoint, StartTown, Discovery, HowTo, QuestCompleteFlags, Unlocks, QuestTracking, "
|
||||||
// "Aetheryte, GMRank, UPDATE_DATE )
|
// "Aetheryte, GMRank, UPDATE_DATE )
|
||||||
|
|
||||||
Core::Db::PreparedStatement* stmt( g_charaDb.getPreparedStatement(
|
auto stmt = g_charaDb.getPreparedStatement( Db::CharaDbStatements::CHAR_INS_CHARINFO );
|
||||||
Core::Db::CharaDbStatements::CHAR_INS_CHARINFO ) );
|
|
||||||
|
|
||||||
stmt->setInt( 1, m_accountId );
|
stmt->setInt( 1, m_accountId );
|
||||||
stmt->setInt( 2, m_id );
|
stmt->setInt( 2, m_id );
|
||||||
|
|
Loading…
Add table
Reference in a new issue