From 476300ee97276020cc166066b19fc8026142f023 Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Wed, 9 Jul 2014 15:58:38 +0200 Subject: experimental PDO support --- execute.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/execute.c b/execute.c index e73d19b..f2877d4 100644 --- a/execute.c +++ b/execute.c @@ -1638,6 +1638,13 @@ internal_function_handler ihandlers[] = { { "maxdb::prepare", ih_querycheck, (void *)1, NULL, NULL }, { "maxdb_prepare", ih_querycheck, (void *)2, NULL, NULL }, + /* PDO */ + /* note: mysql conditional comments not supported here */ + { "pdo::__construct", ih_fixusername, (void *)2, NULL, NULL }, /* note: username may come from dsn (param 1) */ + { "pdo::query", ih_querycheck, (void *)1, NULL, NULL }, + { "pdo::prepare", ih_querycheck, (void *)1, NULL, NULL }, + { "pdo::exec", ih_querycheck, (void *)1, NULL, NULL }, + /* Oracle OCI8 */ { "ocilogon", ih_fixusername, (void *)1, NULL, NULL }, { "ociplogon", ih_fixusername, (void *)1, NULL, NULL }, -- cgit v1.3