EXPLAIN queries fail

Moderator: NorbertKrupa

Post Reply
JakaJancar
Newbie
Newbie
Posts: 5
Joined: Wed Jan 30, 2013 1:27 pm

EXPLAIN queries fail

Post by JakaJancar » Fri Feb 22, 2013 11:45 pm

I'm connecting to Vertica via ODBC. Normal queries work:

Code: Select all

$db->query("SELECT 1")->fetchAll();
However EXPLAIN queries:

Code: Select all

$db->query("EXPLAIN SELECT 1")->fetchAll();
fail with error:

Code: Select all

PDOException: SQLSTATE[SL009]: <<Unknown error>>: 0 [unixODBC][Driver Manager]No columns were bound prior to calling SQLFetch or SQLFetchScroll (SQLFetchScroll[0] at /usr/src/php5.4/source/php5-5.4.10/ext/pdo_odbc/odbc_stmt.c:537)
Any ideas?

Post Reply

Return to “PHP”