Firefox 3.1 compatibility fix (from Simon)
This commit is contained in:
parent
e32e6aa2f5
commit
675184d160
1 changed files with 4 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue