Skip to content
Snippets Groups Projects
Commit ca3393e5 authored by Eric Cano's avatar Eric Cano
Browse files

Minor cosmetic fixes.

parent b6e74d2a
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ namespace wrapper {
//------------------------------------------------------------------------------
std::string Sqlite::rcToStr(const int rc) {
switch (rc) {
// Support one extended SQLite error code.
// Support some extended SQLite error code.
case SQLITE_CONSTRAINT_PRIMARYKEY:
return "Primary key error";
case SQLITE_CONSTRAINT_UNIQUE:
......@@ -78,7 +78,7 @@ std::string Sqlite::rcToStr(const int rc) {
case SQLITE_OK:
return "Operation successful";
case SQLITE_PERM:
return "Permnission denied";
return "Permission denied";
case SQLITE_RANGE:
return "Invalid bind parameter index";
case SQLITE_READONLY:
......@@ -91,7 +91,7 @@ std::string Sqlite::rcToStr(const int rc) {
return "TEXT or BLOCK too big";
case SQLITE_ERROR:
return "Generic error";
default: {
default: {
std::ostringstream oss;
oss << "Unknown SQLite return code " << rc;
return oss.str();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment