-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Table "DUAL" not found in Oracle mode. #1153
Comments
This syntax is not valid in Oracle due to another problem. But Oracle accepts |
Ah, because
Thank you so much! I'm going to have to use an ugly |
Your test case uncovered a lot of issues. They should be fixed now. You can download or clone with git the current sources and build database with the |
I'm trying to do an upsert using
MERGE
in Oracle mode. My connection string isjdbc:h2:mem:spreadsheets;MODE=Oracle;DB_CLOSE_DELAY=-1
.Let's say that I'm creating a spreadsheet database, with multiple spreadsheets. The contents are stored in
cells(id, row_index, col_index, content)
, whereid
is theid
of the spreadsheet,row
andcol
are the cell coordinates, andcontent
is a string to put in the cell.Each time we put something in a cell, the there may or may not already be a row for that cell. So I want to upsert using
MERGE
in Oracle mode. (For the moment I don't care about the race conditions inherent inMERGE
.) Here is the SQL prepared statement using JDBC:It is my understanding that this is correct Oracle format, although I haven't actually tried it on Oracle yet. (I haven't got that far, because H2 doesn't like it.) H2 tells me:
Is this an H2 bug? Shouldn't H2 support the Oracle
DUAL
table? Or is my syntax incorrect even for Oracle?The text was updated successfully, but these errors were encountered: