Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
ca3393e5
Commit
ca3393e5
authored
6 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Minor cosmetic fixes.
parent
b6e74d2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rdbms/wrapper/Sqlite.cpp
+3
-3
3 additions, 3 deletions
rdbms/wrapper/Sqlite.cpp
with
3 additions
and
3 deletions
rdbms/wrapper/Sqlite.cpp
+
3
−
3
View file @
ca3393e5
...
...
@@ -29,7 +29,7 @@ namespace wrapper {
//------------------------------------------------------------------------------
std
::
string
Sqlite
::
rcToStr
(
const
int
rc
)
{
switch
(
rc
)
{
// Support
on
e extended SQLite error code.
// Support
som
e 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
"Perm
n
ission 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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment