Skip to content

Commit 14671c0

Browse files
committed
Build 1.2.2
1 parent 30f4727 commit 14671c0

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

Cakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{spawn, exec} = require 'child_process'
1+
spawn = require('cross-spawn')
22
fs = require('fs')
33
UglifyJS = require('uglify-js')
44
require('coffee-script/register')

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
SQL Parser
22
==========
33

4-
[![Bower version](https://img.shields.io/bower/v/sql-parser.svg?style=flat-square)](https://github.com/mistic100/sql-parser)
54
[![NPM version](https://img.shields.io/npm/v/sql-parser-mistic.svg?style=flat-square)](https://www.npmjs.com/package/sql-parser-mistic)
65

76
SQL Parser is a lexer, grammar and parser for SQL written in JS. Currently it is only capable of parsing fairly basic SELECT queries but full SQL support will hopefully come in time. See the specs for examples of currently supported queries.
@@ -16,12 +15,12 @@ The package is distributed on NPM and can be installed with...
1615

1716
It is also available on Bower :
1817

19-
npm install sql-parser
18+
bower install sql-parser
2019

2120
To build from source you'll need to run the following from the root of the project...
2221

2322
npm install
24-
cake build
23+
npm run build
2524

2625
Tests are written using Mocha and can be run with...
2726

browser/sql-parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* SQLParser 1.2.1
2+
* SQLParser 1.2.2
33
* Copyright 2012-2015 Andy Kent <andy@forward.co.uk>
44
* Copyright 2015-2018 Damien "Mistic" Sorel (https://www.strangeplanet.fr)
55
* Licensed under MIT (http://opensource.org/licenses/MIT)
@@ -238,7 +238,7 @@
238238

239239
SQL_SORT_ORDERS = ['ASC', 'DESC'];
240240

241-
SQL_OPERATORS = ['=', '!=', '>=', '>', '<=', '<>', '<', 'LIKE', 'NOT LIKE', 'ILIKE', 'NOT ILIKE', 'IS', 'IS NOT', 'REGEXP', 'NOT REGEXP'];
241+
SQL_OPERATORS = ['=', '!=', '>=', '>', '<=', '<>', '<', 'LIKE', 'NOT LIKE', 'ILIKE', 'NOT ILIKE', 'IS NOT', 'IS', 'REGEXP', 'NOT REGEXP'];
242242

243243
SUB_SELECT_OP = ['IN', 'NOT IN', 'ANY', 'ALL', 'SOME'];
244244

browser/sql-parser.min.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.

lib/lexer.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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sql-parser-mistic",
33
"description": "Lexer and Parser for SQL Syntax",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"author": {
66
"name": "Andy Kent",
77
"email": "andy@forward.co.uk"
@@ -24,6 +24,7 @@
2424
],
2525
"devDependencies": {
2626
"coffee-script": "1.8.0",
27+
"cross-spawn": "^6.0.5",
2728
"jison": "0.4.15",
2829
"mocha": "2.0.1",
2930
"should": "4.1.0",

test/parser.spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe "SQL Parser", ->
4949
)
5050

5151
it "parses basic WHERE", ->
52-
ast = parse("SELECT * FROM my_table WHERE id >= 5 AND name LIKE 'foo' AND ( bar IS NOT NULL OR date NOT BETWEEN 41 AND 43 )")
52+
ast = parse("SELECT * FROM my_table WHERE id >= 5 AND name LIKE 'foo' AND ( bar IS NOT NULL OR date BETWEEN 41 AND 43 )")
5353
ast.where.should.eql new nodes.Where(
5454
new nodes.Op(
5555
'AND'

0 commit comments

Comments
 (0)