Changeset 8610 for trunk/psLib/src/db/psDB.h
- Timestamp:
- Aug 25, 2006, 2:32:39 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.h
r8336 r8610 10 10 * @author Joshua Hoblitt 11 11 * 12 * @version $Revision: 1.2 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-08- 15 02:28:13$12 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-26 00:32:39 $ 14 14 * 15 15 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 90 90 * @return bool: true on success 91 91 */ 92 #ifdef __GNUC__ 92 93 bool p_psDBRunQuery( 93 94 psDB *dbh, ///< Database handle 94 95 const char *format, ///< SQL string to execute 95 96 ... ///< Arguments for name formatting and metadata item data. 96 ); 97 ) __attribute__((format(printf, 2, 3))); 98 99 #else // __GNUC__ 100 bool p_psDBRunQuery( 101 psDB *dbh, ///< Database handle 102 const char *format, ///< SQL string to execute 103 ... ///< Arguments for name formatting and metadata item data. 104 ); 105 #endif // __GNUC__ 97 106 98 107 /** Executes a SQL query as a prepared statement … … 104 113 * @return long: the number of database rows affected 105 114 */ 115 #ifdef __GNUC__ 106 116 long p_psDBRunQueryPrepared( 107 117 psDB *dbh, ///< Database handle … … 109 119 const char *format, ///< SQL string to execute 110 120 ... 111 ); 121 ) __attribute__((format(printf, 3, 4))); 122 #else // __GNUC__ 123 long p_psDBRunQueryPrepared( 124 psDB *dbh, ///< Database handle 125 const psArray *rowSet, ///< row data as psArray of psMetadata 126 const char *format, ///< SQL string to execute 127 ... 128 ); 129 #endif // __GNUC__ 112 130 113 131 /** Fetches the result of a SQL query
Note:
See TracChangeset
for help on using the changeset viewer.
