#include "../config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <mysql.h>
#include "buf.h"
#include "db_conn.h"
Include dependency graph for d_mysql_f.c:
Go to the source code of this file.
Data Structures | |
struct | DBConnection_MYSQL |
The MySQL-specific database connection structure. More... | |
Defines | |
#define | BASENAME "Database" |
Database name. | |
#define | BASEHOST "Host" |
Database host. | |
#define | BASEPASS "Password" |
Database password. | |
#define | DESCRIBE_S "describe %s" |
SQL template string for the DESCRIBE query. | |
Functions | |
void | mysql_dbconnection_free (DBConnection *dbconn) |
Free a DBConnection and it's related DBConnection_MYSQL. | |
char * | my_DBform_to_url (Form *frm) |
Variables | |
MYSQL_RES | dummyRes |
A nasty hack: if a MySQL query succeeded, but returned a NULL result (e.g. |
Definition in file d_mysql_f.c.
|
Definition at line 181 of file d_mysql_f.c. References _a_buf::b_dat, BASEHOST, BASENAME, BASEPASS, buf_check(), buf_strcat(), buf_strcpy(), frm_get_title(), and frm_get_value_by_name(). |
|
Free a DBConnection and it's related DBConnection_MYSQL.
Definition at line 103 of file d_mysql_f.c. References DBConnection_MYSQL::dbname, keywords_remove_all(), and db_conn::pvt. |
|
A nasty hack: if a MySQL query succeeded, but returned a NULL result (e.g. after an UPDATE), we return the address of dummy_res from DBexecute_query(). This is so we can distinguish a successful query which returned nothing from a failed query in DBget_query_status(). Definition at line 66 of file d_mysql_f.c. |