Changeset 1373
- Timestamp:
- 08/10/08 10:10:33 (5 months ago)
- Files:
-
- trunk/include/pqxx/util.hxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/pqxx/util.hxx
r1362 r1373 157 157 static const char *name() { return "const char *"; } 158 158 static bool has_null() { return true; } 159 static bool is_null(const char *t) { return t != NULL; }159 static bool is_null(const char *t) { return !t; } 160 160 static const char *null() { return NULL; } 161 161 static void from_string(const char Str[], const char *&Obj) { Obj = Str; } … … 168 168 static const char *name() { return "char[]"; } 169 169 static bool has_null() { return true; } 170 static bool is_null(const char t[]) { return t != NULL; }170 static bool is_null(const char t[]) { return !t; } 171 171 static const char *null() { return NULL; } 172 172 static void from_string(const char Str[], const char *&Obj) { Obj = Str; }
