Fixes bug in introduction assignment 3 and adjusted wording in assignment
1
This commit is contained in:
parent
e873752eac
commit
6cf3740c04
@ -70,6 +70,7 @@ public class SqlInjectionLesson3 extends AssignmentEndpoint {
|
||||
ResultSet _results = check_statement.executeQuery("SELECT * FROM employees WHERE last_name='Barnett';");
|
||||
StringBuffer output = new StringBuffer();
|
||||
// user completes lesson if the department of Tobi Barnett now is 'Sales'
|
||||
_results.first();
|
||||
if (_results.getString("department").equals("Sales")) {
|
||||
output.append(SqlInjectionLesson8.generateTable(_results));
|
||||
return trackProgress(success().feedbackArgs(output.toString()).build());
|
||||
|
@ -4,7 +4,7 @@ SQL is a standardized (ANSI in 1986, ISO in 1987) programming language which is
|
||||
|
||||
A database is a collection of data. Data is organized into rows, columns and tables, and it is indexed to make it easier to find relevant information.
|
||||
|
||||
Example SQL table with employees:
|
||||
Example SQL table with employees, the name of the table is 'employees':
|
||||
|
||||
Employees Table
|
||||
|===
|
||||
|
Loading…
x
Reference in New Issue
Block a user