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

db/oracle should not quote tables and identifiers #20

Open
drankard opened this issue Aug 26, 2014 · 3 comments
Open

db/oracle should not quote tables and identifiers #20

drankard opened this issue Aug 26, 2014 · 3 comments

Comments

@drankard
Copy link

Isn't it wrong to quote oracle tables and identifiers ?
I get error when calling oracle.

(query my-oracle 
       (sql (oracle)
            (select [:sysdate]
                    (from :dual))))

generates following:

[SELECT "sysdate" FROM "dual"]

result:

Error: ORA-00942: table or view does not exist

I would think this because there is no table called "dual" (quoted) ?
same problem with the "sysdate" identifyer.

@drankard drankard changed the title db/oracle should not quote identifiers db/oracle should not quote tables and identifiers Aug 26, 2014
@r0man
Copy link
Owner

r0man commented Sep 30, 2014

Hmm, I think either the quotes should be left off, or quoted identifiers should be upper cased. Can you confirm this? Sorry for the late repsone. Traveling at the moment.

@drankard
Copy link
Author

drankard commented Oct 3, 2014

They should be left off, Oracle is using quotes as regular chars.
if you query SELECT "sysdate" FROM "dual" you tell oracle to look for a table called "dual" and not dual

@r0man
Copy link
Owner

r0man commented Oct 4, 2014

Hey @drankard,

can you check the latest changes in master, and confirm that this
is working for you?

Roman

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