-
Notifications
You must be signed in to change notification settings - Fork 12.9k
PL/SQL is not fully supported #355
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
Comments
Can this work for you? |
Seems to be FINE When will that change be available at mybatis-migrations? Currently the fix is present in master (3.3.0-SNAPSHOT), and migrations uses 3.2.8 |
It's working using: The working code:
One more suggestion is: putting the word 'DELIMITER' in SQL comment block like:
or: |
The current solution is working but not production-ready: we should remain between the frames of SQL-standard. Like one of: |
Good catch. Would you mind changing it yourself? |
Sure, I can do it. Which solution do you prefer? (-- or --// or --//@) |
declarative changing of delimiter support using standard SQL comment characters, e.g.: --/@delimiter / --/@delimiter ;
Pull request created: |
mybatis #355 PL/SQL is not fully supported
fix for using with mybatis-migrations MigrationReader does line.replaceFirst("--\\s*//", "-- "); so we need to be prepared for that
there is a fix to be compliant with mybatis migrations |
mybatis #355 PL/SQL is not fully suppported
I'm wondering when this is going to be released and downstreamed into migrations and maven-migrations-plugin... |
declarative changing of delimiter support using standard SQL comment characters, e.g.: --/@delimiter / --/@delimiter ;
mybatis mybatis#355 PL/SQL is not fully supported
fix for using with mybatis-migrations MigrationReader does line.replaceFirst("--\\s*//", "-- "); so we need to be prepared for that
mybatis mybatis#355 PL/SQL is not fully suppported
Currently the Oracle PL/SQL blocks are not fully supported by ScriptRunner.
There is a common workaround:
using:
...but this is not a clean solution:
There is a suggested solution that modifies the ScriptRunner (https://code.google.com/p/mybatis/source/diff?spec=svn4001&r=4001&format=side&path=/trunk/src/main/java/org/apache/ibatis/jdbc/ScriptRunner.java) but it has been rejected.
Is it possible to annotate the PL/SQLs instead of the SQLs and keep the common delimiters?
The text was updated successfully, but these errors were encountered: