Core/DBLayer: Correct size for storing MYSQL_TYPE_FLOAT
--HG-- branch : trunk
This commit is contained in:
@@ -291,7 +291,7 @@ void MySQLPreparedStatement::setFloat(const uint8 index, const float value)
|
|||||||
CheckValidIndex(index);
|
CheckValidIndex(index);
|
||||||
m_paramsSet[index] = true;
|
m_paramsSet[index] = true;
|
||||||
MYSQL_BIND* param = &m_bind[index];
|
MYSQL_BIND* param = &m_bind[index];
|
||||||
setValue(param, MYSQL_TYPE_FLOAT, &value, sizeof(double), (value > 0.0f));
|
setValue(param, MYSQL_TYPE_FLOAT, &value, sizeof(float), (value > 0.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MySQLPreparedStatement::setDouble(const uint8 index, const double value)
|
void MySQLPreparedStatement::setDouble(const uint8 index, const double value)
|
||||||
|
|||||||
Reference in New Issue
Block a user