Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

ORA-01745: Ungültiger Host-/Bindevariablenname caused by :table #28

Open
lkainers opened this issue Jul 23, 2015 · 7 comments
Open

ORA-01745: Ungültiger Host-/Bindevariablenname caused by :table #28

lkainers opened this issue Jul 23, 2015 · 7 comments

Comments

@lkainers
Copy link

In /src/Metadata/Source/OracleMetadata.php#L127 :table is a reserved word and therefore the query fails

@lkainers lkainers changed the title ORA-01745: Ungültiger Host-/Bindevariablenname cause by :table ORA-01745: Ungültiger Host-/Bindevariablenname caused by :table Jul 24, 2015
@lkainers
Copy link
Author

The query does also contain additional line breaks (#125, #128) and a semicolon at the end (#129)

@Ocramius
Copy link
Member

@lkainers what oracle version are you testing against? Also, got an example of a generated query?

@lkainers
Copy link
Author

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit

There is no generated query

is the query

@lkainers
Copy link
Author

$params = array(
'driver' => 'Oci8',
'hostname' => 'host',
'username' => 'user',
'password' => pass',
'port' => '',
);

$connection = new Zend\Db\Adapter\Driver\Oci8\Connection($params);
$driver = new Zend\Db\Adapter\Driver\Oci8\Oci8($connection);
$adapter = new Zend\Db\Adapter\Adapter($driver);

$metadata = new Zend\Db\Metadata\Metadata($adapter);
$metadata->getConstraints('tablename');

@vixriihi
Copy link
Contributor

vixriihi commented Sep 9, 2015

Here's a PR #34 that would fix this issue

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at laminas/laminas-db#142.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants