TrinityCore/TrinityCore — Issue #4039: [GDB-Backtrace]  MySQLConnection::Query
Author: Amit86
Created: 2011-11-23 12:02:15+00:00
State: open

MySQLConnection::Query

MySQLConnection.cpp line 277

```cpp

if (mysql_stmt_execute(msql_STMT))
{
uint32 lErrno = mysql_errno(m_Mysql);
sLog->outSQLDriver("SQL(p): %s\n [ERROR]: [%u] %s",
m_mStmt->getQueryString(m_queries[index].first).c_str(), lErrno, mysql_stmt_error(msql_STMT));

if (_HandleMySQLErrno(lErrno)) // If it returns true, an error was handled successfully (i.e. reconnection)
return _Query(stmt, pResult, pRowCount, pFieldCount); // Try again

m_mStmt->ClearParameters();
return false;
}
```

Spell.cpp lines 1230

```cpp

if (spellHitTarget)
{
SpellMissInfo missInfo = DoSpellHitOnUnit(spellHitTarget, mask, target->scaleAura);
if (missInfo != SPELL_MISS_NONE)
{
if (missInfo != SPELL_MISS_MISS)
m_caster->SendSpellMiss(unit, m_spellInfo->Id, missInfo);
m_damage = 0;
spellHitTarget = NULL;
}
}

```

Last server log line
2011-11-23 13:45:51 ERROR: SmartScript: SMART_ACTION_EQUIP uses non-existent equipment info entry 10000

Hash: 7c8f435

Link: http://pastebin.com/nbMAr4yN