-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support custom SQL query execution #104
Comments
Ensure backtick ` and ' single quote work just fine within the SQL statement there (as well as any other special characters SQL eats without problem). Which component actually does the validation parsing here for what's between the double-quotes? And when does that component actually do the checking, what's the sequence actually look like? |
@thadguidry - can you please share some examples Mandatory attributes can be checked in the controller. |
Just search for "sql string literals". |
And over the years, as UTF-8 needed to be supported fully...many things changed and were deprecated. For example, in MySQL:
As a best practice, I'd require having to single quote objects. Tables, etc. |
There's a Java library that does validation stuff and I think Tony used it for the Database extension in OpenRefine, if I recall. Need me to find it? |
Let the database perform these validations, DB2Rest in this case just acts as facilitator. |
@souravroy closing this ticket. |
POST Request :
/query --> QueryController
input payload - use named parameter jdbc template.
named parameters are easy to debug
The parameter single is optional - it indicates if the query returns 1 result when set to true. Otherwise, by default it returns a list.
The text was updated successfully, but these errors were encountered: