diff options
author | tomsmeding <hallo@tomsmeding.nl> | 2015-05-23 20:51:49 +0200 |
---|---|---|
committer | tomsmeding <hallo@tomsmeding.nl> | 2015-05-23 20:51:49 +0200 |
commit | 8bf922f71c0e37ac590f9527a6cf1a6d2cab793c (patch) | |
tree | afa69d9778442c203e604e3cc1dc88cf7a1a97c1 /engine.cpp | |
parent | 91f7a1c413a8be587fdc0b357fe6412e89d16d7d (diff) |
UpdateQuery
Diffstat (limited to 'engine.cpp')
-rw-r--r-- | engine.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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); |