Changeset 14452 for trunk/psLib/src/db/psDB.h
- Timestamp:
- Aug 8, 2007, 3:40:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/db/psDB.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/db/psDB.h
r12128 r14452 7 7 * @author Joshua Hoblitt 8 8 * 9 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2007-0 3-01 03:57:08$9 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2007-08-09 01:40:07 $ 11 11 * 12 12 * Copyright 2005 Joshua Hoblitt, University of Hawaii … … 45 45 const char *dbname, ///< Database namespace 46 46 unsigned int port ///< Database port number 47 ) ;47 ) PS_ATTR_MALLOC; 48 48 49 49 /** Opens a new database connection … … 115 115 * @return bool: true on success 116 116 */ 117 #ifdef __GNUC__118 117 bool p_psDBRunQuery( 119 118 psDB *dbh, ///< Database handle 120 119 const char *format, ///< SQL string to execute 121 120 ... ///< Arguments for name formatting and metadata item data. 122 ) __attribute__((format(printf, 2, 3))); 123 124 #else // __GNUC__ 125 bool p_psDBRunQuery( 126 psDB *dbh, ///< Database handle 127 const char *format, ///< SQL string to execute 128 ... ///< Arguments for name formatting and metadata item data. 129 ); 130 #endif // __GNUC__ 121 ) PS_ATTR_FORMAT(printf, 2, 3); 131 122 132 123 /** Executes a SQL query as a prepared statement … … 138 129 * @return long: the number of database rows affected 139 130 */ 140 #ifdef __GNUC__141 131 long p_psDBRunQueryPrepared( 142 132 psDB *dbh, ///< Database handle … … 144 134 const char *format, ///< SQL string to execute 145 135 ... 146 ) __attribute__((format(printf, 3, 4))); 147 #else // __GNUC__ 148 long p_psDBRunQueryPrepared( 149 psDB *dbh, ///< Database handle 150 const psArray *rowSet, ///< row data as psArray of psMetadata 151 const char *format, ///< SQL string to execute 152 ... 153 ); 154 #endif // __GNUC__ 136 ) PS_ATTR_FORMAT(printf, 3, 4); 155 137 156 138 /** Fetches the result of a SQL query
Note:
See TracChangeset
for help on using the changeset viewer.
