Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 8997fbc

Browse files
committed
Release v0.11.2.
1 parent d3ed55c commit 8997fbc

File tree

6 files changed

+31
-13
lines changed

6 files changed

+31
-13
lines changed

CHANGELOG.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased][unreleased]
55

6-
## [v0.11.1] - 2016-01-29
6+
## [v0.11.2] - 2016-01-29
77
### Fixed
88
- Refactor to solve the different issues that come from trying to use unquoted reserved words as
99
part of table names, column names, aliases, etc... This also addresses issues that came from certain SQLite keywords being fully contained within other keywords (e.g.: `IN` is contained in `INT` which is contained in `INTERSECT`).
@@ -15,6 +15,24 @@ part of table names, column names, aliases, etc... This also addresses issues th
1515
INTERSECT
1616
select suit, tie from pants;
1717
```
18+
- Whoops! `order` property of `SELECT` statements contained an object with a `result` key that contained the ordering list instead of just containing the ordering list. It should actually look like this instead:
19+
20+
``` json
21+
{
22+
"order": [
23+
{
24+
"type": "expression",
25+
"variant": "order",
26+
"expression": {
27+
"type": "identifier",
28+
"variant": "column",
29+
"name": "hats"
30+
},
31+
"direction": "asc"
32+
}
33+
]
34+
}
35+
```
1836

1937
## [v0.11.0] - 2015-09-29
2038
### Changed
@@ -443,8 +461,8 @@ part of table names, column names, aliases, etc... This also addresses issues th
443461
### Added
444462
- First working version of sqlite-parser
445463

446-
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.11.1...HEAD
447-
[v0.11.1]: https://github.com/codeschool/sqlite-parser/compare/v0.11.0...v0.11.1
464+
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.11.2...HEAD
465+
[v0.11.2]: https://github.com/codeschool/sqlite-parser/compare/v0.11.0...v0.11.2
448466
[v0.11.0]: https://github.com/codeschool/sqlite-parser/compare/v0.10.2...v0.11.0
449467
[v0.10.2]: https://github.com/codeschool/sqlite-parser/compare/v0.9.8...v0.10.2
450468
[v0.9.8]: https://github.com/codeschool/sqlite-parser/compare/v0.9.1...v0.9.8

demo/js/sqlite-parser-demo.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sqlite-parser-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/sqlite-parser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* sqlite-parser - v0.11.1
2+
* sqlite-parser - v0.11.2
33
* @copyright 2016 Code School (http://codeschool.com)
44
* @author Nick Wronski <nick@javascript.com>
55
*/
@@ -25,7 +25,7 @@ function sqliteParser(source, callback) {
2525
}
2626

2727
sqliteParser['NAME'] = 'sqlite-parser';
28-
sqliteParser['VERSION'] = '0.11.1';
28+
sqliteParser['VERSION'] = '0.11.2';
2929

3030
module.exports = sqliteParser;
3131

@@ -917,7 +917,7 @@ module.exports = (function() {
917917
peg$c178 = { type: "other", description: "ORDER BY Clause" },
918918
peg$c179 = function(d) {
919919
return {
920-
'order': d
920+
'order': d['result']
921921
};
922922
},
923923
peg$c180 = { type: "other", description: "LIMIT Clause" },

lib/parser.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "sqlite-parser",
33
"description": "JavaScript implentation of SQLite 3 query parser",
44
"author": "Code School (http://codeschool.com)",
5-
"version": "0.11.1",
5+
"version": "0.11.2",
66
"contributors": [
77
"Nick Wronski <nick@javascript.com>"
88
],

0 commit comments

Comments
 (0)