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

Failing trigger does not report an error to unixODBC #169

Open
chunter2 opened this issue Apr 17, 2024 · 7 comments
Open

Failing trigger does not report an error to unixODBC #169

chunter2 opened this issue Apr 17, 2024 · 7 comments

Comments

@chunter2
Copy link

I'm using unixODBC in my c++ application to talk to an Oracle 19c database. I've got things working but have stumbled across an issue. I've got a table that has a trigger on it when a specific column is updated. The trigger has a coding issue and currently fails. This needs to be fixed. The issue is I don't get any errors when calling the update to the table back to my application. The table fails to update in the database but my application thinks everything is fine. I'm running on almalinux and using the unixODBC.x86_64 2.3.7-1.el8 package. Any thoughts?

Thanks

@lurcher
Copy link
Owner

lurcher commented Apr 17, 2024 via email

@chunter2
Copy link
Author

When you say driver, do you mean the Oracle client driver? I'm using Oracle's client driver and Oracle's ODBC package for linux. If I run the same update to run the trigger in sqlplus which uses the Oracle client driver I get the appropriate error.

@lurcher
Copy link
Owner

lurcher commented Apr 17, 2024 via email

@chunter2
Copy link
Author

I believe you're right with OCI and sqlplus. So you're suggesting it's an issue with the Oracle ODBC Driver? Any suggestions on how to test that theory?

@lurcher
Copy link
Owner

lurcher commented Apr 17, 2024 via email

@v-chojas
Copy link
Contributor

You can also try to turn on the ODBC trace and see if it shows the driver returning an error.

@lurcher
Copy link
Owner

lurcher commented Apr 17, 2024 via email

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

3 participants