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
3943f047
Commit
3943f047
authored
Sep 19, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sev, sql query buffer for create table was to small
parent
9a2178af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
sev/lib/sev/src/sev_dbms.cpp
sev/lib/sev/src/sev_dbms.cpp
+3
-3
sev/lib/sev/src/sev_dbsqlite.cpp
sev/lib/sev/src/sev_dbsqlite.cpp
+2
-2
No files found.
sev/lib/sev/src/sev_dbms.cpp
View file @
3943f047
...
@@ -713,7 +713,7 @@ sev_db *sev_dbms::open_database()
...
@@ -713,7 +713,7 @@ sev_db *sev_dbms::open_database()
int
sev_dbms
::
create_table
(
pwr_tStatus
*
sts
,
char
*
tablename
,
pwr_eType
type
,
int
sev_dbms
::
create_table
(
pwr_tStatus
*
sts
,
char
*
tablename
,
pwr_eType
type
,
unsigned
int
size
,
pwr_tMask
options
,
float
deadband
)
unsigned
int
size
,
pwr_tMask
options
,
float
deadband
)
{
{
char
query
[
2
00
];
char
query
[
4
00
];
char
timeformatstr
[
80
];
char
timeformatstr
[
80
];
char
jumpstr
[
80
];
char
jumpstr
[
80
];
char
idtypestr
[
20
];
char
idtypestr
[
20
];
...
@@ -1007,7 +1007,7 @@ int sev_dbms::store_value( pwr_tStatus *sts, int item_idx, int attr_idx,
...
@@ -1007,7 +1007,7 @@ int sev_dbms::store_value( pwr_tStatus *sts, int item_idx, int attr_idx,
if
(
m_items
[
item_idx
].
attrnum
>
1
)
{
if
(
m_items
[
item_idx
].
attrnum
>
1
)
{
return
store_objectvalue
(
sts
,
item_idx
,
attr_idx
,
time
,
buf
,
m_items
[
item_idx
].
old_value
,
size
);
return
store_objectvalue
(
sts
,
item_idx
,
attr_idx
,
time
,
buf
,
m_items
[
item_idx
].
old_value
,
size
);
}
}
char
query
[
2
00
];
char
query
[
4
00
];
char
bufstr
[
512
];
char
bufstr
[
512
];
char
timstr
[
40
];
char
timstr
[
40
];
int
update_time_only
=
0
;
int
update_time_only
=
0
;
...
@@ -1419,7 +1419,7 @@ int sev_dbms::get_values( pwr_tStatus *sts, pwr_tOid oid, pwr_tMask options, flo
...
@@ -1419,7 +1419,7 @@ int sev_dbms::get_values( pwr_tStatus *sts, pwr_tOid oid, pwr_tMask options, flo
}
}
char
query
[
2
00
];
char
query
[
4
00
];
char
starttimstr
[
40
];
char
starttimstr
[
40
];
char
endtimstr
[
40
];
char
endtimstr
[
40
];
int
total_rows
;
int
total_rows
;
...
...
sev/lib/sev/src/sev_dbsqlite.cpp
View file @
3943f047
...
@@ -329,7 +329,7 @@ int sev_dbsqlite::createSevVersion3Tables(void)
...
@@ -329,7 +329,7 @@ int sev_dbsqlite::createSevVersion3Tables(void)
int
sev_dbsqlite
::
create_table
(
pwr_tStatus
*
sts
,
char
*
tablename
,
pwr_eType
type
,
int
sev_dbsqlite
::
create_table
(
pwr_tStatus
*
sts
,
char
*
tablename
,
pwr_eType
type
,
unsigned
int
size
,
pwr_tMask
options
,
float
deadband
)
unsigned
int
size
,
pwr_tMask
options
,
float
deadband
)
{
{
char
query
[
2
00
];
char
query
[
4
00
];
char
*
errmsg
;
char
*
errmsg
;
char
timeformatstr
[
80
];
char
timeformatstr
[
80
];
char
jumpstr
[
80
];
char
jumpstr
[
80
];
...
@@ -659,7 +659,7 @@ int sev_dbsqlite::store_value( pwr_tStatus *sts, int item_idx, int attr_idx,
...
@@ -659,7 +659,7 @@ int sev_dbsqlite::store_value( pwr_tStatus *sts, int item_idx, int attr_idx,
if
(
m_items
[
item_idx
].
attrnum
>
1
)
{
if
(
m_items
[
item_idx
].
attrnum
>
1
)
{
return
store_objectvalue
(
sts
,
item_idx
,
attr_idx
,
time
,
buf
,
m_items
[
item_idx
].
old_value
,
size
);
return
store_objectvalue
(
sts
,
item_idx
,
attr_idx
,
time
,
buf
,
m_items
[
item_idx
].
old_value
,
size
);
}
}
char
query
[
2
00
];
char
query
[
4
00
];
char
*
errmsg
;
char
*
errmsg
;
char
bufstr
[
512
];
char
bufstr
[
512
];
char
timstr
[
40
];
char
timstr
[
40
];
...
...
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