use correct parse function for float arrays - closes #131
This commit is contained in:
parent
730355040d
commit
7f00b3ee30
@ -57,7 +57,17 @@ var parseIntegerArray = function(val) {
|
||||
var p = arrayParser.create(val, function(entry){
|
||||
if(entry != null)
|
||||
entry = parseInt(entry, 10);
|
||||
return entry;
|
||||
});
|
||||
|
||||
return p.parse();
|
||||
};
|
||||
|
||||
var parseFloatArray = function(val) {
|
||||
if(!val) return null;
|
||||
var p = arrayParser.create(val, function(entry){
|
||||
if(entry != null)
|
||||
entry = parseFloat(entry, 10);
|
||||
return entry;
|
||||
});
|
||||
|
||||
@ -132,8 +142,8 @@ var init = function(register) {
|
||||
register(1005, parseIntegerArray); // _int2
|
||||
register(1007, parseIntegerArray); // _int4
|
||||
register(1016, parseIntegerArray); // _int8
|
||||
register(1021, parseIntegerArray); // _float4
|
||||
register(1022, parseIntegerArray); // _float8
|
||||
register(1021, parseFloatArray); // _float4
|
||||
register(1022, parseFloatArray); // _float8
|
||||
register(1231, parseIntegerArray); // _numeric
|
||||
register(1008, parseStringArray);
|
||||
register(1009, parseStringArray);
|
||||
|
Loading…
Reference in New Issue
Block a user