forked from EnterpriseDB/mysql_fdw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql_query.h
29 lines (24 loc) · 874 Bytes
/
mysql_query.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*-------------------------------------------------------------------------
*
* mysql_query.h
* Foreign-data wrapper for remote MySQL servers
*
* Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group
*
* Portions Copyright (c) 2004-2014, EnterpriseDB Corporation.
*
* IDENTIFICATION
* mysql_query.h
*
*-------------------------------------------------------------------------
*/
#ifndef MYSQL_QUERY_H
#define MYSQL_QUERY_H
#include "foreign/foreign.h"
#include "lib/stringinfo.h"
#include "nodes/relation.h"
#include "utils/rel.h"
Datum mysql_convert_to_pg(Oid pgtyp, int pgtypmod, Datum daata, MySQLFdwExecState *festate);
void mysql_bind_sql_var(Oid type, int attnum, Datum value, MYSQL_BIND *binds, bool *isnull);
Datum mysql_bind_result(int attnum, Datum *value, bool *isnull, MYSQL_BIND *result_values);
#endif /* MYSQL_QUERY_H */