Firefox 3.1 compatibility fix (from Simon)

This commit is contained in:
Dan Stillman 2008-10-07 02:56:06 +00:00
parent e32e6aa2f5
commit 675184d160

View file

@ -1010,22 +1010,16 @@ Zotero.DBConnection.prototype._getTypedValue = function (statement, i) {
var type = statement.getTypeOfIndex(i);
switch (type) {
case statement.VALUE_TYPE_INTEGER:
var func = statement.getInt64;
break;
return statement.getInt64(i);
case statement.VALUE_TYPE_TEXT:
var func = statement.getUTF8String;
break;
return statement.getUTF8String(i);
case statement.VALUE_TYPE_NULL:
return null;
case statement.VALUE_TYPE_FLOAT:
var func = statement.getDouble;
break;
return statement.getDouble(i);
case statement.VALUE_TYPE_BLOB:
var func = statement.getBlob;
break;
return statement.getBlob(i);
}
return func(i);
}