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
a1e4fafc
Commit
a1e4fafc
authored
8 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Made rdbms::Stmt::m_sql and m_autoCommitMode private
parent
6d5c0c3f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rdbms/SqliteStmt.cpp
+1
-1
1 addition, 1 deletion
rdbms/SqliteStmt.cpp
rdbms/Stmt.hpp
+10
-10
10 additions, 10 deletions
rdbms/Stmt.hpp
with
11 additions
and
11 deletions
rdbms/SqliteStmt.cpp
+
1
−
1
View file @
a1e4fafc
...
...
@@ -47,7 +47,7 @@ SqliteStmt::SqliteStmt(
const
uint
maxPrepareRetries
=
20
;
// A worst case scenario of 2 seconds
for
(
unsigned
int
i
=
1
;
i
<=
maxPrepareRetries
;
i
++
)
{
const
int
prepareRc
=
sqlite3_prepare_v2
(
m_conn
.
m_sqliteConn
,
m_sql
.
c_str
(),
nByte
,
&
m_stmt
,
nullptr
);
const
int
prepareRc
=
sqlite3_prepare_v2
(
m_conn
.
m_sqliteConn
,
getSql
()
.
c_str
(),
nByte
,
&
m_stmt
,
nullptr
);
if
(
SQLITE_OK
==
prepareRc
)
{
break
;
...
...
This diff is collapsed.
Click to expand it.
rdbms/Stmt.hpp
+
10
−
10
View file @
a1e4fafc
...
...
@@ -182,16 +182,6 @@ public:
protected
:
/**
* The SQL statement.
*/
std
::
string
m_sql
;
/**
* The autocommit mode of the statement.
*/
AutocommitMode
m_autoCommitMode
;
/**
* The maximum length an SQL statement can have in exception error message.
*/
...
...
@@ -211,6 +201,16 @@ protected:
private
:
/**
* The SQL statement.
*/
std
::
string
m_sql
;
/**
* The autocommit mode of the statement.
*/
AutocommitMode
m_autoCommitMode
;
/**
* Map from SQL parameter name to parameter index.
*/
...
...
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