Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions sqlteaching.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ var levels = [
columns: ["name", "weapon"],
values: [
["US Marine", "M1A1 Abrams Tank"],
["Spec Ops Operative", "Glock 17"],
["John Wilkes Booth", ".44 caliber Derringer"],
["Zorro", "Sword of Zorro"],
["Innocent Bystander", null],
Expand Down Expand Up @@ -834,11 +835,13 @@ var load_database = function (db_type) {
sqlstr +=
"INSERT INTO fighters VALUES (1, 'US Marine', 'Colt 9mm SMG', 'Swiss Army Knife', 'M1A1 Abrams Tank');";
sqlstr +=
"INSERT INTO fighters VALUES (2, 'John Wilkes Booth', '.44 caliber Derringer', null, null);";
"INSERT INTO fighters VALUES (2, 'Spec Ops Operative', 'Glock 17', 'Fairbairn Sykes Dagger', null);";
sqlstr +=
"INSERT INTO fighters VALUES (3, 'Zorro', null, 'Sword of Zorro', null);";
"INSERT INTO fighters VALUES (3, 'John Wilkes Booth', '.44 caliber Derringer', null, null);";
sqlstr +=
"INSERT INTO fighters VALUES (4, 'Innocent Bystander', null, null, null);";
"INSERT INTO fighters VALUES (4, 'Zorro', null, 'Sword of Zorro', null);";
sqlstr +=
"INSERT INTO fighters VALUES (5, 'Innocent Bystander', null, null, null);";
table_names = ["fighters"];
break;
}
Expand Down