From 0a589394a09ce5b3f16d902d657710a2886cc2fc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Aug 2010 11:17:52 +0200 Subject: Add query support --- odb/mysql/query.txx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 odb/mysql/query.txx (limited to 'odb/mysql/query.txx') diff --git a/odb/mysql/query.txx b/odb/mysql/query.txx new file mode 100644 index 0000000..23d4ba7 --- /dev/null +++ b/odb/mysql/query.txx @@ -0,0 +1,28 @@ +// file : odb/mysql/query.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +namespace odb +{ + namespace mysql + { + template + query& query:: + operator+= (val_bind v) + { + add ( + shared_ptr ( + new (shared) query_param_impl::image_id> (v))); + } + + template + query& query:: + operator+= (ref_bind r) + { + add ( + shared_ptr ( + new (shared) query_param_impl::image_id> (r))); + } + } +} -- cgit v1.1