#839: fix the SQL statement as this one does not express that the orderBy
clause input is user input
This commit is contained in:
parent
dac011db78
commit
7b8523dcab
@ -6,7 +6,7 @@ Answer: No it does not
|
|||||||
Let us take a look at the following statement:
|
Let us take a look at the following statement:
|
||||||
|
|
||||||
----
|
----
|
||||||
SELECT * FROM users ORDER BY lastname;
|
"SELECT * FROM users ORDER BY " + sortColumName + ";"
|
||||||
----
|
----
|
||||||
|
|
||||||
If we look at the specification of the SQL grammar the definition is as follows:
|
If we look at the specification of the SQL grammar the definition is as follows:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user