aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/query.txx
blob: 23d4ba7a66f7be753366eba3df109a419632fdb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// file      : odb/mysql/query.txx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

namespace odb
{
  namespace mysql
  {
    template <typename T>
    query& query::
    operator+= (val_bind<T> v)
    {
      add (
        shared_ptr<query_param> (
          new (shared) query_param_impl<T, value_traits<T>::image_id> (v)));
    }

    template <typename T>
    query& query::
    operator+= (ref_bind<T> r)
    {
      add (
        shared_ptr<query_param> (
          new (shared) query_param_impl<T, value_traits<T>::image_id> (r)));
    }
  }
}