summaryrefslogtreecommitdiff
path: root/odb/oracle/traits.txx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/oracle/traits.txx')
-rw-r--r--odb/oracle/traits.txx130
1 files changed, 0 insertions, 130 deletions
diff --git a/odb/oracle/traits.txx b/odb/oracle/traits.txx
deleted file mode 100644
index 22d8f9e..0000000
--- a/odb/oracle/traits.txx
+++ /dev/null
@@ -1,130 +0,0 @@
-// file : odb/oracle/traits.txx
-// license : ODB NCUEL; see accompanying LICENSE file
-
-namespace odb
-{
- namespace oracle
- {
- //
- // default_value_traits<char[N], id_blob>
- //
-
- template <std::size_t N>
- bool default_value_traits<char[N], id_blob>::
- result_callback (void* c, ub4* position, void* b, ub4 s, chunk_position)
- {
- ub4 n (*position + s < N ? s : N - *position);
- std::memcpy (static_cast<char*> (c) + *position, b, n);
- *position += n;
- return true;
- }
-
- template <std::size_t N>
- bool default_value_traits<char[N], id_blob>::
- param_callback (const void* c,
- ub4*,
- const void** b,
- ub4* s,
- chunk_position* p,
- void*,
- ub4)
- {
- *p = chunk_one;
- *s = static_cast<ub4> (N);
- *b = c;
- return true;
- }
-
- //
- // default_value_traits<unsigned char[N], id_blob>
- //
-
- template <std::size_t N>
- bool default_value_traits<unsigned char[N], id_blob>::
- result_callback (void* c, ub4* position, void* b, ub4 s, chunk_position)
- {
- ub4 n (*position + s < N ? s : N - *position);
- std::memcpy (static_cast<unsigned char*> (c) + *position, b, n);
- *position += n;
- return true;
- }
-
- template <std::size_t N>
- bool default_value_traits<unsigned char[N], id_blob>::
- param_callback (const void* c,
- ub4*,
- const void** b,
- ub4* s,
- chunk_position* p,
- void*,
- ub4)
- {
- *p = chunk_one;
- *s = static_cast<ub4> (N);
- *b = c;
- return true;
- }
-
-#ifdef ODB_CXX11
- //
- // default_value_traits<std::array<char, N>, id_blob>
- //
-
- template <std::size_t N>
- bool default_value_traits<std::array<char, N>, id_blob>::
- result_callback (void* c, ub4* position, void* b, ub4 s, chunk_position)
- {
- ub4 n (*position + s < N ? s : N - *position);
- std::memcpy (static_cast<char*> (c) + *position, b, n);
- *position += n;
- return true;
- }
-
- template <std::size_t N>
- bool default_value_traits<std::array<char, N>, id_blob>::
- param_callback (const void* c,
- ub4*,
- const void** b,
- ub4* s,
- chunk_position* p,
- void*,
- ub4)
- {
- *p = chunk_one;
- *s = static_cast<ub4> (N);
- *b = c;
- return true;
- }
-
- //
- // default_value_traits<std::array<unsigned char, N>, id_blob>
- //
-
- template <std::size_t N>
- bool default_value_traits<std::array<unsigned char, N>, id_blob>::
- result_callback (void* c, ub4* position, void* b, ub4 s, chunk_position)
- {
- ub4 n (*position + s < N ? s : N - *position);
- std::memcpy (static_cast<unsigned char*> (c) + *position, b, n);
- *position += n;
- return true;
- }
-
- template <std::size_t N>
- bool default_value_traits<std::array<unsigned char, N>, id_blob>::
- param_callback (const void* c,
- ub4*,
- const void** b,
- ub4* s,
- chunk_position* p,
- void*,
- ub4)
- {
- *p = chunk_one;
- *s = static_cast<ub4> (N);
- *b = c;
- return true;
- }
-#endif
- }
-}