From 8bf922f71c0e37ac590f9527a6cf1a6d2cab793c Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 23 May 2015 20:51:49 +0200 Subject: UpdateQuery --- engine.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'engine.cpp') 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); -- cgit v1.2.3-70-g09d2