Skip to content

Commit

Permalink
Fix regex for mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
biggora committed May 5, 2013
1 parent 48ae2f5 commit 41db63f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/adapters/mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ MySQL.prototype.all = function all(model, filter, callback) {
case 'ne':
sqlCond += ' != ';
break;
case 'regexp':
case 'regex':
sqlCond += ' REGEXP ';
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/adapters/sqlite3.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ SQLite3.prototype.all = function all(model, filter, callback) {
case 'ne':
sqlCond += ' != ';
break;
case 'regexp':
case 'regex':
sqlCond += ' REGEXP ';
break;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "caminte",
"description": "ORM for every database: redis, mysql, neo4j, mongodb, postgres, sqlite",
"version": "0.0.3-1",
"version": "0.0.3-2",
"author": "Aleksej Gordejev <[email protected]> (http://www.gordejev.lv)",
"keywords": [
"caminte",
Expand Down

0 comments on commit 41db63f

Please sign in to comment.