Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
michalbundyra opened this issue Jan 16, 2020 · 7 comments
Closed

Comments

@michalbundyra
Copy link
Member

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


Originally posted by @lkainers at zendframework/zend-db#28

@michalbundyra
Copy link
Member Author

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


Originally posted by @lkainers at zendframework/zend-db#28 (comment)

@michalbundyra
Copy link
Member Author

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


Originally posted by @Ocramius at zendframework/zend-db#28 (comment)

@michalbundyra
Copy link
Member Author

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit

There is no generated query https://github.com/zendframework/zend-db/blob/790123893c01ad597b28652b2a382ac86186c6c8/src/Metadata/Source/OracleMetadata.php#L107 is the query


Originally posted by @lkainers at zendframework/zend-db#28 (comment)

@michalbundyra
Copy link
Member 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');


Originally posted by @lkainers at zendframework/zend-db#28 (comment)

@michalbundyra
Copy link
Member Author

Here's a PR zendframework/zend-db#34 that would fix this issue


Originally posted by @vixriihi at zendframework/zend-db#28 (comment)

@samsonasik
Copy link
Member

it seems already fixed by merged PR zendframework/zend-db#34 .

I am closing this.

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

No branches or pull requests

2 participants