- Timestamp:
- 06/29/10 13:11:05 (2 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
connection_base.cxx (modified) (1 diff)
-
transaction_base.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/connection_base.cxx
r1652 r1664 1506 1506 1507 1507 1508 string pqxx::connection_base::quote_raw(const unsigned char str[], size_t len) 1509 { 1510 // Since 8.2, postgres prefers E'escape strings' for bytea. 1511 const string prefix((server_version() >= 80200) ? "E'" : "'"); 1512 return prefix + esc_raw(str, len) + "'::bytea"; 1513 } 1514 1515 1516 string pqxx::connection_base::quote(const binarystring &b) 1517 { 1518 return quote_raw(b.data(), b.size()); 1519 } 1520 1521 1508 1522 pqxx::internal::reactivation_avoidance_exemption:: 1509 1523 reactivation_avoidance_exemption( -
trunk/src/transaction_base.cxx
r1591 r1664 9 9 * represents a database transaction 10 10 * 11 * Copyright (c) 2001-20 09, Jeroen T. Vermeulen <jtv@xs4all.nl>11 * Copyright (c) 2001-2010, Jeroen T. Vermeulen <jtv@xs4all.nl> 12 12 * 13 13 * See COPYING for copyright license. If you did not receive a file called … … 224 224 { 225 225 const unsigned char *p = reinterpret_cast<const unsigned char *>(str.c_str()); 226 return m_Conn.esc_raw(p, str.size()); 226 return conn().esc_raw(p, str.size()); 227 } 228 229 230 string pqxx::transaction_base::quote_raw(const PGSTD::string &str) const 231 { 232 const unsigned char *p = reinterpret_cast<const unsigned char *>(str.c_str()); 233 return conn().quote_raw(p, str.size()); 227 234 } 228 235
