Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
lucas.parsy
jio
Commits
aaaa7dc8
Commit
aaaa7dc8
authored
Dec 09, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WebSQLStorage: do not sort results
parent
738c87bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/jio.storage/websqlstorage.js
src/jio.storage/websqlstorage.js
+1
-1
test/jio.storage/websqlstorage.tests.js
test/jio.storage/websqlstorage.tests.js
+6
-6
No files found.
src/jio.storage/websqlstorage.js
View file @
aaaa7dc8
...
...
@@ -347,7 +347,7 @@
if
(
options
.
include_docs
===
true
)
{
query
+=
"
, data AS doc
"
;
}
query
+=
"
FROM document
ORDER BY id
"
;
query
+=
"
FROM document
"
;
return
queueSql
(
db
,
[
query
],
[[]]);
})
.
push
(
function
(
result
)
{
...
...
test/jio.storage/websqlstorage.tests.js
View file @
aaaa7dc8
...
...
@@ -198,7 +198,7 @@
return
context
.
jio
.
allDocs
();
})
.
then
(
function
()
{
equal
(
context
.
spy
.
args
[
5
][
0
],
'
SELECT id FROM document
ORDER BY id
'
);
equal
(
context
.
spy
.
args
[
5
][
0
],
'
SELECT id FROM document
'
);
deepEqual
(
context
.
spy
.
args
[
5
][
1
],
[]);
spyStorageCreation
(
context
);
return
;
...
...
@@ -228,7 +228,7 @@
})
.
then
(
function
()
{
equal
(
context
.
spy
.
args
[
5
][
0
],
'
SELECT id, data AS doc FROM document
ORDER BY id
'
);
'
SELECT id, data AS doc FROM document
'
);
deepEqual
(
context
.
spy
.
args
[
5
][
1
],
[]);
spyStorageCreation
(
context
);
return
;
...
...
@@ -338,13 +338,13 @@
deepEqual
(
result
,
{
"
data
"
:
{
"
rows
"
:
[{
"
id
"
:
"
1
"
,
"
doc
"
:
{
"
title
"
:
"
title1
"
},
"
value
"
:
{}
},
{
"
id
"
:
"
2
"
,
"
doc
"
:
{
"
title
"
:
"
title2
"
},
"
value
"
:
{}
},
{
"
id
"
:
"
1
"
,
"
doc
"
:
{
"
title
"
:
"
title1
"
},
"
value
"
:
{}
}],
"
total_rows
"
:
2
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment