Skip to content

Commit c6352b9

Browse files
committed
Fixed persistence and other issues
1 parent c5aea20 commit c6352b9

File tree

4 files changed

+190
-148
lines changed

4 files changed

+190
-148
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![jSQL Logo](http://i.imgur.com/VQlJKOc.png)](http://pamblam.github.io/jSQL/)
22

3-
jSQL - Version 2.1 - *Now gluten free!*
3+
jSQL - Version 2.2 - *Now gluten free!*
44

55
<hr>
66

examples/keys/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
[2, "ted", "applesauce"]
1515
];
1616

17+
jSQL.onError(function(e){
18+
console.log(e.stack);
19+
alert(e);
20+
});
21+
1722
jSQL.load(function(){
1823

1924
//// Create a compound key using low-level syntax
@@ -37,7 +42,7 @@
3742
// This will the primary key, adding "ignore" prevents it from throwing an error
3843
//jSQL.query("insert ignore into myTable VALUES (0, 'nerd', 'bagel')").execute();
3944

40-
jSQL.update('myTable').ignore().set({ID:0}).where("Name").equals("bob").execute();
45+
jSQL.update('myTable').set({ID:0}).where("Name").equals("bob").execute();
4146

4247
//jSQL.commit();
4348

0 commit comments

Comments
 (0)