aboutsummaryrefslogtreecommitdiff
path: root/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine.cpp')
-rw-r--r--engine.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/engine.cpp b/engine.cpp
index 6e46269..568245b 100644
--- a/engine.cpp
+++ b/engine.cpp
@@ -46,10 +46,10 @@ int main(int argc,char **argv){
{
Row row(3,hoitb);
- row.items[0].rh_int32=UINT_MAX;
- row.items[1].rh_uint32=UINT_MAX;
- row.items[2].rh_bytes=new unsigned char[10];
- memcpy((char*)row.items[2].rh_bytes,"hallo daar",10);
+ row.items[0].v.rh_int32=UINT_MAX;
+ row.items[1].v.rh_uint32=UINT_MAX;
+ row.items[2].v.rh_bytes=new unsigned char[10];
+ memcpy((char*)row.items[2].v.rh_bytes,"hallo daar",10);
InsertQuery iqu(move(row));
iqu.tablename="hoi";
@@ -62,10 +62,10 @@ int main(int argc,char **argv){
{
Row row(3,hoitb);
- row.items[0].rh_int32=42;
- row.items[1].rh_uint32=UINT_MAX;
- row.items[2].rh_bytes=new unsigned char[10];
- memcpy((char*)row.items[2].rh_bytes,"doei!\0\0\0\0",10);
+ row.items[0].v.rh_int32=42;
+ row.items[1].v.rh_uint32=UINT_MAX;
+ row.items[2].v.rh_bytes=new unsigned char[10];
+ memcpy((char*)row.items[2].v.rh_bytes,"doei!\0\0\0\0",10);
InsertQuery iqu(move(row));
iqu.tablename="hoi";
@@ -79,7 +79,7 @@ int main(int argc,char **argv){
{
FindQuery fqu;
fqu.tablename="hoi";
- RowItem ri; ri.rh_uint32=UINT_MAX;
+ RowItem ri; ri.v.rh_uint32=UINT_MAX;
fqu.where.emplace_back(1,ri);
QueryResult res=fqu.execute(tables);
@@ -91,7 +91,7 @@ int main(int argc,char **argv){
{
DeleteQuery dqu;
dqu.tablename="hoi";
- RowItem ri; ri.rh_int32=-1;
+ RowItem ri; ri.v.rh_int32=-1;
dqu.where.emplace_back(0,ri);
QueryResult res=dqu.execute(tables);
@@ -103,7 +103,7 @@ int main(int argc,char **argv){
{
FindQuery fqu;
fqu.tablename="hoi";
- RowItem ri; ri.rh_uint32=UINT_MAX;
+ RowItem ri; ri.v.rh_uint32=UINT_MAX;
fqu.where.emplace_back(1,ri);
QueryResult res=fqu.execute(tables);