Commit 5fe7e607 authored by Claes Sjofors's avatar Claes Sjofors

Sev server fix in get data, time range and number of points returned

parent dae9e22b
This diff is collapsed.
...@@ -206,9 +206,14 @@ class sev_dbms : public sev_db { ...@@ -206,9 +206,14 @@ class sev_dbms : public sev_db {
void add_cache( int item_idx); void add_cache( int item_idx);
int begin_transaction(); int begin_transaction();
int commit_transaction(); int commit_transaction();
int get_closest_time( char *tablename, unsigned int options, pwr_tTime *time, int before, int *id); int get_closest_time( char *tablename, unsigned int options, pwr_tTime *time, int before,
unsigned int *id);
void string_to_mysqlstring( char *in, char *out, int size); void string_to_mysqlstring( char *in, char *out, int size);
void mysqlstring_to_string( char *in, char *out, int size); void mysqlstring_to_string( char *in, char *out, int size);
int get_id_range( pwr_tStatus *sts, sev_item *item,
pwr_tMask options, unsigned int *first, unsigned int *last);
int get_time_range( pwr_tStatus *sts, sev_item *item,
pwr_tMask options, pwr_tTime *first, pwr_tTime *last);
inline char* create_colName(unsigned int index, char *attributename) { inline char* create_colName(unsigned int index, char *attributename) {
static char colName[constMaxColNameLength]; static char colName[constMaxColNameLength];
strncpy(colName, attributename, constMaxColNameLength); strncpy(colName, attributename, constMaxColNameLength);
......
...@@ -54,6 +54,7 @@ nosuchattr <No such attribute exist> /error ...@@ -54,6 +54,7 @@ nosuchattr <No such attribute exist> /error
range <Unable to get range> /error range <Unable to get range> /error
unknowntype <Unknown data type> /error unknowntype <Unknown data type> /error
nosuchtable <Table doesn't exist> /error nosuchtable <Table doesn't exist> /error
norows <No rows found> /error
.end .end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment