hard20 pts · first answer countssqlsecurity
Sorting by a user-chosen column
An endpoint accepts ?sort=created_at. A developer writes ORDER BY $1 with the value as a bound parameter, and the results are not sorted. What is the right approach?
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- How to store passwordsBackend Developer
- Purpose of a database indexBackend Developer
- Keeping secrets out of codeBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer