Permalink
Browse files

Allowing users to change precision. Fixing and adding tests

  • Loading branch information...
1 parent 288a9f2 commit f713e03ca2654d3d499bdc5ea31244ddf3fc5261 @mariano committed Oct 23, 2011
Showing with 23 additions and 4 deletions.
  1. +6 −0 CHANGELOG
  2. +1 −1 lib/node-db
  3. +1 −1 package.json
  4. +6 −0 tests-settings.json
  5. +9 −2 tests.js
View
@@ -2,6 +2,12 @@ For more in depth changelog, check the Github Commits:
https://github.com/mariano/node-db-mysql/commits/master
+0.7.0
+-----
+* Fixing issue where ints were treated as floating point numbers
+* Allowing user to change precision of floating point numbers
+* Fixing unit tests (they require a valid DB connection now. Check the tests-settings.json file)
+
0.6.9
-----
* Fixing precision with big numbers
Submodule node-db updated 3 files
+37 −8 query.cc
+2 −1 query.h
+22 −5 tests.js
View
@@ -2,7 +2,7 @@
, "description" : "MySQL database bindings for Node.JS"
, "keywords": ["database","db","native","binding","library","plugin","client","mysql","libmysql"]
, "homepage" : "http://nodejsdb.org/db-mysql"
-, "version" : "0.6.9"
+, "version" : "0.7.0"
, "engines" : { "node" : ">=0.4.1" }
, "maintainers" :
[ { "name": "Mariano Iglesias"
View
@@ -0,0 +1,6 @@
+{
+ "host": "localhost",
+ "user": "root",
+ "password": "password",
+ "database": "node"
+}
View
@@ -1,8 +1,15 @@
/* Escape & Query building tests */
+var settings = JSON.parse(require('fs').readFileSync('./tests-settings.json','utf8'));
+
var mysql = require("./db-mysql");
-var tests = require("./lib/node-db/tests.js").get(function() {
- return new mysql.Database();
+var tests = require("./lib/node-db/tests.js").get(function(callback) {
+ new mysql.Database(settings).connect(function(err) {
+ if (err) {
+ throw new Error('Could not connect to test DB');
+ }
+ callback(this);
+ });
});
for(var test in tests) {

0 comments on commit f713e03

Please sign in to comment.