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

Commit 3954a4f

Browse files
committed
Release v0.12.2.
1 parent 690d0ec commit 3954a4f

File tree

7 files changed

+39
-21
lines changed

7 files changed

+39
-21
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.12.1] - 2016-01-29
6+
## [v0.12.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.12.0] - 2015-09-29
2038
### Changed
@@ -442,8 +460,8 @@ part of table names, column names, aliases, etc... This also addresses issues th
442460
### Added
443461
- First working version of sqlite-parser
444462

445-
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.12.1...HEAD
446-
[v0.12.1]: https://github.com/codeschool/sqlite-parser/compare/v0.12.0...v0.12.1
463+
[unreleased]: https://github.com/codeschool/sqlite-parser/compare/v0.12.2...HEAD
464+
[v0.12.2]: https://github.com/codeschool/sqlite-parser/compare/v0.12.0...v0.12.2
447465
[v0.12.0]: https://github.com/codeschool/sqlite-parser/compare/v0.10.2...v0.12.0
448466
[v0.10.2]: https://github.com/codeschool/sqlite-parser/compare/v0.9.8...v0.10.2
449467
[v0.9.8]: https://github.com/codeschool/sqlite-parser/compare/v0.9.1...v0.9.8

demo/css/sqlite-parser-demo.css

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

demo/js/sqlite-parser-demo.js

Lines changed: 9 additions & 9 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.12.1
2+
* sqlite-parser - v0.12.2
33
* @copyright 2016 Code School (http://codeschool.com)
44
* @author Nick Wronski <[email protected]>
55
*/
@@ -17,7 +17,7 @@ function sqliteParser(source, callback) {
1717
}
1818

1919
sqliteParser['NAME'] = 'sqlite-parser';
20-
sqliteParser['VERSION'] = '0.12.1';
20+
sqliteParser['VERSION'] = '0.12.2';
2121

2222
module.exports = sqliteParser;
2323

@@ -856,7 +856,7 @@ module.exports = (function() {
856856
peg$c178 = { type: "other", description: "ORDER BY Clause" },
857857
peg$c179 = function(d) {
858858
return {
859-
'order': d
859+
'order': d['result']
860860
};
861861
},
862862
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.12.1",
5+
"version": "0.12.2",
66
"contributors": [
77
"Nick Wronski <[email protected]>"
88
],

0 commit comments

Comments
 (0)