mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-05 02:06:02 -04:00
Fix 3 new cpplint warnings about max line size
This commit is contained in:
parent
b9322fb0ab
commit
3c39f1ff1c
@ -468,7 +468,7 @@ private:
|
|||||||
{
|
{
|
||||||
if (false == mbOk)
|
if (false == mbOk)
|
||||||
{
|
{
|
||||||
throw SQLite::Exception("No row to get a column from. executeStep() was not called or did not returned true.");
|
throw SQLite::Exception("No row to get a column from. executeStep() was not called, or returned false.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ void Statement::bind(const int aIndex, const double& aValue)
|
|||||||
// Bind a string value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement
|
// Bind a string value to a parameter "?", "?NNN", ":VVV", "@VVV" or "$VVV" in the SQL prepared statement
|
||||||
void Statement::bind(const int aIndex, const std::string& aValue)
|
void Statement::bind(const int aIndex, const std::string& aValue)
|
||||||
{
|
{
|
||||||
const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(), static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
|
const int ret = sqlite3_bind_text(mStmtPtr, aIndex, aValue.c_str(),
|
||||||
|
static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
|
||||||
check(ret);
|
check(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +146,8 @@ void Statement::bind(const char* apName, const double& aValue)
|
|||||||
void Statement::bind(const char* apName, const std::string& aValue)
|
void Statement::bind(const char* apName, const std::string& aValue)
|
||||||
{
|
{
|
||||||
const int index = sqlite3_bind_parameter_index(mStmtPtr, apName);
|
const int index = sqlite3_bind_parameter_index(mStmtPtr, apName);
|
||||||
const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(), static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
|
const int ret = sqlite3_bind_text(mStmtPtr, index, aValue.c_str(),
|
||||||
|
static_cast<int>(aValue.size()), SQLITE_TRANSIENT);
|
||||||
check(ret);
|
check(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user