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

fix alter session set_clause #509

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Conversation

rheilek
Copy link
Contributor

@rheilek rheilek commented Jan 30, 2024

If go_ora.AddSessionParam(db, "CURRENT_SCHEMA", schema) used, single quotes at "alter session set %s='%s'" raises ORA-02421: missing or invalid schema authorization identifier.

I think the caller should do escaping (add quotes) if necessary.

go_ora.AddSessionParam(db, "CURRENT_SCHEMA", schema)
go_ora.AddSessionParam(db, "nls_date_format", "'DD-MON-YYYY HH24:MI:SS'")

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

Successfully merging this pull request may close these issues.

2 participants