Update to work with Gecko 1.8 branch (2.0a1) and trunk (1.6a1) with native mozStorage support
Disabled on 1.5, as hacks.atrus.org binaries will no longer work (the mozStorage API changed a bit)
This commit is contained in:
parent
c8f10f4b6d
commit
6cad409813
2 changed files with 6 additions and 6 deletions
|
@ -57,7 +57,7 @@ Scholar.DB = new function(){
|
||||||
while (statement.executeStep()){
|
while (statement.executeStep()){
|
||||||
var row = new Array();
|
var row = new Array();
|
||||||
for(var i=0; i<statement.columnCount; i++) {
|
for(var i=0; i<statement.columnCount; i++) {
|
||||||
row[statement.getColumnName(i)] = statement.getAsUTF8String(i);
|
row[statement.getColumnName(i)] = statement.getUTF8String(i);
|
||||||
}
|
}
|
||||||
dataset.push(row);
|
dataset.push(row);
|
||||||
}
|
}
|
||||||
|
@ -108,10 +108,10 @@ Scholar.DB = new function(){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (sql.indexOf('SELECT COUNT(*)') > -1){
|
if (sql.indexOf('SELECT COUNT(*)') > -1){
|
||||||
var value = statement.getAsInt32(0);
|
var value = statement.getInt32(0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var value = statement.getAsUTF8String(0);
|
var value = statement.getUTF8String(0);
|
||||||
}
|
}
|
||||||
statement.reset();
|
statement.reset();
|
||||||
return value;
|
return value;
|
||||||
|
@ -138,7 +138,7 @@ Scholar.DB = new function(){
|
||||||
if (statement){
|
if (statement){
|
||||||
var column = new Array();
|
var column = new Array();
|
||||||
while (statement.executeStep()){
|
while (statement.executeStep()){
|
||||||
column.push(statement.getAsUTF8String(0));
|
column.push(statement.getUTF8String(0));
|
||||||
}
|
}
|
||||||
statement.reset();
|
statement.reset();
|
||||||
return column.length ? column : false;
|
return column.length ? column : false;
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||||
<RDF:Description RDF:about="rdf:#$V4RG2"
|
<RDF:Description RDF:about="rdf:#$V4RG2"
|
||||||
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
|
||||||
em:minVersion="1.0+"
|
em:minVersion="1.6a1"
|
||||||
em:maxVersion="1.5.0.*" />
|
em:maxVersion="2.0a1" />
|
||||||
<RDF:Description RDF:about="urn:mozilla:install-manifest"
|
<RDF:Description RDF:about="urn:mozilla:install-manifest"
|
||||||
em:id="scholar@chnm"
|
em:id="scholar@chnm"
|
||||||
em:name="Firefox Scholar"
|
em:name="Firefox Scholar"
|
||||||
|
|
Loading…
Reference in a new issue