Lines Matching defs:to

4  * Permission to use, copy, modify, and distribute this software for any
21 * Permission to use, copy, modify, and distribute this software for any
39 * Permission to use, copy, modify, and distribute this software for any
96 * structure to hold ODBC connection & statement
105 * Structure to hold everthing needed by this "instance" of the odbc driver
114 db_list_t *db; /* handle to a list of DB */
118 dbinstance_t *db; /* handle to db */
122 SQLHENV sql_env; /* handle to SQL environment */
131 odbc_makesafe(char *to, const char *from, size_t length);
238 /*% Connects to database, and creates ODBC statements */
249 * if db != null, we have to do some cleanup
267 "Odbc driver unable to allocate memory");
277 "Odbc driver unable to allocate memory");
287 "Odbc driver unable to connect");
296 "Odbc driver unable to allocate memory");
329 * Loops through the list of DB instances, attempting to lock
353 /* try to lock on the mutex */
360 /* check to see if we have gone to the top of the list. */
368 "Odbc driver unable to find available "
378 * safe to be used in queries. This is necessary because we cannot
379 * be sure of what types of strings are passed to us, and we don't
404 * Escaping arbitrary strings to get valid SQL strings/identifiers.
407 * length is the length of the buffer pointed to by
408 * from. The buffer at to must be at least 2*length + 1 characters
422 odbc_makesafe(char *to, const char *from, size_t length)
425 char *target = to;
458 return target - to;
464 * string is not available). The type of query we want to run
466 * passed in to. dbdata really holds either:
472 * to the caller so they can get the data from the result set from it.
473 * If successfull, it will be the responsibility of the caller to close
502 * only 1 DBI - no need to lock instance lock either
515 /* what type of query are we going to run? */
571 "Incorrect query flag passed to "
588 } else { /* no string passed, set the string pointer to NULL */
602 } else { /* no string passed, set the string pointer to NULL */
616 } else { /* no string passed, set the string pointer to NULL */
621 * what type of query are we going to run?
622 * this time we build the actual query to run.
646 "Incorrect query flag passed to "
664 /* attempt query up to 3 times. */
666 /* try to get result set */
675 /* attempt to reconnect */
692 cleanup: /* it's always good to cleanup after yourself */
730 * it is the reponsibility of the caller to free the memory using
757 * it is the reponsibility of the caller to free the memory using
823 * into this function to minimize code.
848 "Odbc driver unable to process result set");
858 /* set to null for next pass through */
866 * of 86400. attempt to get data, & tell bind
878 * use default TTL of 86400. attempt to get
892 * together. attempt to get DNS ttl, type,
902 /* try to convert ttl string to int */
976 /* so we don't have to do it here. */
999 /*% Determine if the client is allowed to perform a zone transfer */
1015 * if we get to this point we know the zone is supported by
1022 * up, so we don't have to do it here.
1053 * If the client is allowed to perform a zone transfer, the next order of
1054 * business is to get all the nodes in the zone, so bind can respond to the
1087 "Odbc driver unable to return "
1098 "Odbc driver unable to process result set");
1117 /* set to null for next pass through */
1121 * attempt to get DNS ttl, type, host, data then tell
1132 /* convert ttl string to int */
1188 * use this function to get that information for Bind.
1209 "Odbc driver unable to return "
1235 "Odbc driver unable to return "
1246 * code is ever loaded, the driver has to remember which context it's
1282 /* verify we have at least 5 arg's passed to the driver */
1291 /* no more than 8 arg's should be passed to the driver */
1342 /* create odbc environment & set environment to ODBC V3 */
1350 "Odbc driver unable to allocate memory");
1361 "Unable to configure ODBC environment");
1381 /* append each new DBI to the end of the list */
1439 * attempting to create 10 db connections and
1445 "Odbc driver failed to create database "
1451 "Odbc driver failed to create database "
1470 /* set dbdata to the odbc_instance we created. */
1485 * code is ever loaded, the driver has to remember which context it's
1487 * so we really only need to clean it up since we are not using driverarg.
1499 /* pointers to all our runtime methods. */
1520 * Write debugging message to log
1557 * Write debugging message to log