dbd/mysql/dbd_mysql.h

Fri, 12 Dec 2008 03:46:34 +0000

author
nrich@ii.net
date
Fri, 12 Dec 2008 03:46:34 +0000
changeset 20
5ab0b30f8fbd
parent 2
c4f02fc67e5a
child 33
6c64c45e7d8f
permissions
-rw-r--r--

Bugfix: the type return by 'select count(...)' was being pushed as a string because of missing psql => lua type mapping.

#include <mysql.h>
#include <dbd/common.h>

#define DBD_MYSQL_CONNECTION	"DBD.MySQL.Connection"
#define DBD_MYSQL_STATEMENT	"DBD.MySQL.Statement"

/*
 * connection object implementation
 */
typedef struct _connection {
    MYSQL *mysql;
} connection_t;

/*
 * statement object implementation
 */
typedef struct _statement {
    MYSQL *mysql;
    MYSQL_STMT *stmt;
    MYSQL_RES *metadata; /* result dataset metadata */
} statement_t;

mercurial