All of these tests will make you win (and us) lot of time ;-)
A good test is to first try your SQL request from 4D itself
First on the 4D holding the targeted database
Example:
Begin SQL
SELECT foo FROM bar INTO :$baz
End SQL
ALERT("baz: " + String($baz))
You will then detect if the request is supported by the 4D SQL engine
Then from a remote 4D, using "SQL Login" before "Begin SQL"
SQL Login($4D_ODBC_DSN; $login; $password)
You will detect then if the problems comes from authentication or from
the communication protocol
If it worked from both of these methods, and doesn't from PDO_4D, then
the problem comes from either the PHP code or the PDO_4D driver.
Please then, don't forget to use try/catch and test the result of the
PDO error messages
- connection level:
http://www.php.net/manual/en/pdo.errorinfo.php
- statement level:
http://www.php.net/manual/en/pdostatement.errorinfo.php