Skip to content

Commit f3da827

Browse files
committed
delete exception in transaction
1 parent 9f73781 commit f3da827

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chainsql",
3-
"version": "0.6.17",
3+
"version": "0.6.18",
44
"description": "An database driver for chainsql ",
55
"main": "src/index.js",
66
"scripts": {

src/table.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Table.prototype.insert = function(raw, field) {
4949
}
5050
}
5151

52-
Table.prototype.update = function(raw) {
52+
Table.prototype.update = function() {
5353
if (!this.tab) throw new Error('you must appoint the table name');
5454
if (this.exec !== 'r_get') throw new Error('Object can not hava function update');
5555
this.query.unshift(Array.prototype.slice.call(arguments)[0]);
@@ -66,15 +66,15 @@ Table.prototype.update = function(raw) {
6666
return this;
6767
}
6868
}
69-
Table.prototype.delete = function(raw) {
69+
Table.prototype.delete = function() {
7070
if (!this.tab) throw new Error('you must appoint the table name');
7171
//if (this.exec !== 'r_get') throw new Error('Object can not hava function delete');
7272
this.exec = 'r_delete';
7373
if (this.transaction) {
7474
this.cache.push({
7575
Owner: this.connect.scope,
7676
TableName: this.tab,
77-
Raw: that.query,
77+
Raw: this.query,
7878
OpType: opType[this.exec]
7979
})
8080
return;

0 commit comments

Comments
 (0)