Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
86090441
Commit
86090441
authored
Mar 04, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print format for UInt64 changed
parent
d6855af6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sev/lib/sev/src/sev_dbms.cpp
sev/lib/sev/src/sev_dbms.cpp
+6
-6
No files found.
sev/lib/sev/src/sev_dbms.cpp
View file @
86090441
...
...
@@ -1705,10 +1705,10 @@ int sev_dbms::delete_old_data( pwr_tStatus *sts, char *tablename,
nbRowsToClean
+=
get_minFromIntegerColumn
(
tablename
,
(
char
*
)
"id"
);
if
(
options
&
pwr_mSevOptionsMask_PosixTime
)
sprintf
(
query
,
"delete from %s where id <
%llu
and time < %ld;"
,
sprintf
(
query
,
"delete from %s where id <
"
pwr_dFormatUInt64
"
and time < %ld;"
,
tablename
,
nbRowsToClean
,
(
long
int
)
limit
.
tv_sec
);
else
sprintf
(
query
,
"delete from %s where id <
%llu
and time < '%s';"
,
sprintf
(
query
,
"delete from %s where id <
"
pwr_dFormatUInt64
"
and time < '%s';"
,
tablename
,
nbRowsToClean
,
timstr
);
}
else
{
...
...
@@ -2605,10 +2605,10 @@ int sev_dbms::delete_old_objectdata( pwr_tStatus *sts, char *tablename,
nbRowsToClean
+=
get_minFromIntegerColumn
(
tablename
,
(
char
*
)
"sev__id"
);
if
(
options
&
pwr_mSevOptionsMask_PosixTime
)
sprintf
(
query
,
"delete from %s where sev__id <
%llu
and sev__time < %ld;"
,
sprintf
(
query
,
"delete from %s where sev__id <
"
pwr_dFormatUInt64
"
and sev__time < %ld;"
,
tablename
,
nbRowsToClean
,
(
long
int
)
limit
.
tv_sec
);
else
sprintf
(
query
,
"delete from %s where sev__id <
%llu
and sev__time < '%s';"
,
sprintf
(
query
,
"delete from %s where sev__id <
"
pwr_dFormatUInt64
"
and sev__time < '%s';"
,
tablename
,
nbRowsToClean
,
timstr
);
}
else
{
...
...
@@ -3170,7 +3170,7 @@ int sev_dbms::handle_itemchange(pwr_tStatus *sts, char *tablename, unsigned int
pwr_tUInt64
autoIncrValue
=
get_maxFromIntegerColumn
(
newTableName
,
(
char
*
)
"id"
);
if
(
autoIncrValue
)
autoIncrValue
++
;
sprintf
(
query
,
"ALTER TABLE %s AUTO_INCREMENT =
%llu"
,
tablename
,
autoIncrValue
);
sprintf
(
query
,
"ALTER TABLE %s AUTO_INCREMENT =
"
pwr_dFormatUInt64
,
tablename
,
autoIncrValue
);
rc
=
mysql_query
(
m_env
->
con
(),
query
);
if
(
rc
)
{
printf
(
"In %s row %d:
\n
"
,
__FILE__
,
__LINE__
);
...
...
@@ -3235,7 +3235,7 @@ int sev_dbms::handle_objectchange(pwr_tStatus *sts, char *tablename, unsigned in
pwr_tUInt64
autoIncrValue
=
get_maxFromIntegerColumn
(
newTableName
,
(
char
*
)
"sev__id"
);
if
(
autoIncrValue
)
autoIncrValue
++
;
sprintf
(
query
,
"ALTER TABLE %s AUTO_INCREMENT =
%llu"
,
tablename
,
autoIncrValue
);
sprintf
(
query
,
"ALTER TABLE %s AUTO_INCREMENT =
"
pwr_dFormatUInt64
,
tablename
,
autoIncrValue
);
rc
=
mysql_query
(
m_env
->
con
(),
query
);
if
(
rc
)
{
printf
(
"In %s row %d:
\n
"
,
__FILE__
,
__LINE__
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment