~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle-2.0/conn.h

  • Committer: Brian Aker
  • Date: 2011-11-18 02:03:41 UTC
  • mto: (2463.1.1 drizzle-include)
  • mto: This revision was merged to the branch mainline in revision 2462.
  • Revision ID: brian@tangent.org-20111118020341-mgz2m1kjo62al44e
Fix safety issues around calling API with no check for NULL

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
 * @return Database associated with this connection.
291
291
 */
292
292
DRIZZLE_API
 
293
const char *drizzle_con_schema(const drizzle_con_st *con);
 
294
 
 
295
DRIZZLE_API
293
296
const char *drizzle_con_db(const drizzle_con_st *con);
294
297
 
295
298
/**
297
300
 *
298
301
 * @param[in] con Connection structure previously initialized with
299
302
 *  drizzle_con_create(), drizzle_con_clone(), or related functions.
300
 
 * @param[in] db Database to use with this connection.
 
303
 * @param[in] schema Database to use with this connection.
301
304
 */
302
305
DRIZZLE_API
303
 
void drizzle_con_set_db(drizzle_con_st *con, const char *db);
 
306
void drizzle_con_set_schema(drizzle_con_st *con, const char *schema);
 
307
 
 
308
DRIZZLE_API
 
309
void drizzle_con_set_db(drizzle_con_st *con, const char *schema);
304
310
 
305
311
/**
306
312
 * Get application context pointer for a connection.