Skip to content
Browse files

fixed typos

  • Loading branch information...
1 parent 3e90f14 commit 54c20440dbfef8e16246323bb192150de69f58f3 @sidorares sidorares committed Jun 16, 2010
Showing with 3 additions and 2 deletions.
  1. +2 −1 mysql/commands.js
  2. +1 −1 mysql/serializers.js
View
3 mysql/commands.js
@@ -1,5 +1,6 @@
var sys = require('sys');
var writer = require('./serializers').writer;
+var field_flags = require('./constants').field_flags;
var flags = require('./constants').flags;
var types = require('./constants').types;
@@ -398,7 +399,7 @@ function execute(sql, parameters)
if (!null_bit_map[f])
{
var field = this.ps.fields[f];
- row.push(r.unpackBinary(field.type, field.flags & constants.field_flags.UNSIGNED));
+ row.push(r.unpackBinary(field.type, field.flags & field_flags.UNSIGNED));
}
}
this.emit('row', row);
View
2 mysql/serializers.js
@@ -98,7 +98,7 @@ function reader(data)
}
// deserialise mysql binary field
-reader.prototype.unpackBinary = function(typei, unsigned)
+reader.prototype.unpackBinary = function(type, unsigned)
{
// debug dump
//return "_not_implemented_ " + constants.type_names[type] + " " + sys.inspect(this.data);

0 comments on commit 54c2044

Please sign in to comment.
Something went wrong with that request. Please try again.