Browse files

switched tests back to sqlite3

  • Loading branch information...
1 parent 282d960 commit d46772e52da3c5c39b578420a708d88366ac1736 @joeferner committed Dec 27, 2011
Showing with 7 additions and 3 deletions.
  1. +1 −1 database.json
  2. +6 −2 test_helpers/test_utils.js
View
2 database.json
@@ -1,5 +1,5 @@
{
- "default": "oracle",
+ "default": "sqlite3",
"sqlite3": {
"driver": "sqlite3",
View
8 test_helpers/test_utils.js
@@ -1,7 +1,7 @@
var fs = require("fs");
-var driver = "oracle";
+var driver = "sqlite3";
/* oracle
CREATE SEQUENCE phone_seq start with 1 increment by 1 nomaxvalue;
@@ -48,7 +48,11 @@ exports.companyCreateStmt = companyCreateStmt = "CREATE TABLE "+ifNotExistsSql+"
+ (driver=='mysql'?'engine=innodb':'');
exports.companyPersonCreateStmt = companyPersonCreateStmt = "CREATE TABLE "+ifNotExistsSql+" CompanyPerson ( company_id INTEGER, person_id INTEGER, PRIMARY KEY(company_id, person_id)) " + (driver=='mysql'?'engine=innodb':'');
-exports.doNothingSql = "SELECT * FROM People";
+if(driver == "oracle") {
+ exports.doNothingSql = "SELECT * FROM People";
+} else {
+ exports.doNothingSql = exports.personCreateStmt;
+}
exports.connect = function(persist, callback) {
var mycallback = function(err, connection) {

0 comments on commit d46772e

Please sign in to comment.