Changeset 3217 for trunk/archive/psdb/psDB.c
- Timestamp:
- Feb 14, 2005, 11:49:16 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/psdb/psDB.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/psdb/psDB.c
r3210 r3217 8 8 * @author Joshua Hoblitt 9 9 * 10 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-02-1 3 23:18:26 $10 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-02-14 21:49:16 $ 12 12 * 13 13 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 516 516 517 517 if (mysql_stmt_prepare(stmt, query, (unsigned long)strlen(query))) { 518 fprintf(stderr, "Failed to prepare query. Error: %s\n", mysql_stmt_error(stmt));519 520 mysql_stmt_close(stmt);521 psFree(query);522 523 return false;518 fprintf(stderr, "Failed to prepare query. Error: %s\n", mysql_stmt_error(stmt)); 519 520 mysql_stmt_close(stmt); 521 psFree(query); 522 523 return false; 524 524 } 525 525 … … 759 759 bind[i].is_unsigned = mType->isUnsigned; 760 760 761 // convert NaNs to NULL 762 bind[i].is_null = psDBIsPTypeNaN(item->pType, item->data.V) 763 ? (my_bool *)&isNull 764 : NULL; 765 761 // convert NaNs to NULL and set the buffer_length for strings 766 762 if (item->pType == PS_TYPE_PTR) { 767 763 if (item->type == PS_META_STR) { … … 779 775 return false; 780 776 } 777 } else { 778 // for all primitive types 779 bind[i].is_null = psDBIsPTypeNaN(item->pType, item->data.V) 780 ? (my_bool *)&isNull 781 : NULL; 781 782 } 782 783
Note:
See TracChangeset
for help on using the changeset viewer.
