Skip to content

Commit b17750e

Browse files
committed
Merge pull request mariano#85 from imkira/master
Recognize BIGINTs
2 parents b86bc68 + 5ecd9bd commit b17750e

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "lib/node-db"]
22
path = lib/node-db
3-
url = git://github.com/mariano/node-db.git
3+
url = git://github.com/imkira/node-db.git

binding.gyp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
'conditions': [
3+
['OS=="mac"', {
4+
'make_global_settings': [
5+
['CC', '/usr/bin/gcc'],
6+
['CXX', '/usr/bin/g++']
7+
]
8+
}]],
29
"targets": [
310
{
411
"target_name": "mysql_bindings",
@@ -16,6 +23,13 @@
1623
'cflags_cc!': [
1724
'-fno-exceptions'
1825
],
26+
'conditions': [
27+
['OS=="mac"', {
28+
'xcode_settings': {
29+
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
30+
'GCC_ENABLE_CPP_RTTI': 'YES'
31+
}
32+
}]],
1933
"sources": [
2034
"lib/node-db/exception.cc",
2135
"lib/node-db/binding.cc",

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
, "keywords": ["database","db","native","binding","library","plugin","client","mysql","libmysql"]
44
, "homepage" : "http://nodejsdb.org/db-mysql"
55
, "version" : "0.7.6"
6-
, "engines" : { "node" : ">=0.4.1" }
6+
, "engines" : { "node" : ">=0.8.0" }
77
, "maintainers" :
88
[ { "name": "Mariano Iglesias"
99
, "email": "[email protected]"
@@ -18,13 +18,14 @@
1818
]
1919
, "main" : "./db-mysql"
2020
, "scripts" :
21-
{ "install": "node-waf configure build"
21+
{ "preinstall": "git clone git://github.com/mariano/node-db.git lib/node-db"
22+
, "install": "node-gyp rebuild --release"
2223
, "preuninstall": "rm -rf build/*"
23-
, "test" : "node-waf test"
24-
, "doc" : "node-waf doc"
24+
, "test" : "nodeunit tests.js"
2525
}
2626
, "devDependencies" :
2727
{ "nodeunit" : "*"
2828
, "nodelint" : "*"
29+
, "node-gyp" : "*"
2930
}
3031
}

src/result.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ node_db_mysql::Result::Column::Column(const MYSQL_FIELD& column) {
1414
case MYSQL_TYPE_YEAR:
1515
case MYSQL_TYPE_INT24:
1616
case MYSQL_TYPE_LONG:
17-
case MYSQL_TYPE_LONGLONG:
1817
this->type = INT;
1918
break;
19+
case MYSQL_TYPE_LONGLONG:
20+
this->type = BIGINT;
21+
break;
2022
case MYSQL_TYPE_FLOAT:
2123
case MYSQL_TYPE_DOUBLE:
2224
case MYSQL_TYPE_DECIMAL:

0 commit comments

Comments
 (0)