pdo-odbc

Apache Ignite - [PDOException] SQLSTATE[IM002] SQLConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified

℡╲_俬逩灬. 提交于 2019-12-25 04:05:10
问题 I have setup apache ignite, loaded data into ignite from Java app and can query using rest apis. I need to query it from PHP so I am trying to connect to Apache Ignite from PHP using pdo_odbc. I have, i) Installed ODBC driver manager - http://www.unixodbc.org/ ii) Built ODBC driver http://apacheignite.gridgain.org/docs/odbc-driver#section-building-on-linux iii) installed Ignite ODBC driver http://apacheignite.gridgain.org/docs/odbc-driver#section-installing-on-linux, iv) configured dsn, http:

PDO does not throw exception with multiple queries

自闭症网瘾萝莉.ら 提交于 2019-11-29 11:44:20
How can I get PDO to throw an exception when executing multiple queries? If I run the erroneous sql by itself: $execute($ddl_partial); $execute($insert); Then I get the expected error: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 207 [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid column name 'other'. (SQLExecute[207] at /build/php7.0-41GaEn/php7.0-7.0.8/ext/pdo_odbc/odbc_stmt.c:260) However, if I run some good SQL first and follow it up with the bad, then it just swallows the error and all appears fine. But looking at the database afterwards

PDO does not throw exception with multiple queries

只谈情不闲聊 提交于 2019-11-28 05:29:16
问题 How can I get PDO to throw an exception when executing multiple queries? If I run the erroneous sql by itself: $execute($ddl_partial); $execute($insert); Then I get the expected error: PHP Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 207 [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Invalid column name 'other'. (SQLExecute[207] at /build/php7.0-41GaEn/php7.0-7.0.8/ext/pdo_odbc/odbc_stmt.c:260) However, if I run some good SQL first and follow it up with the