summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't add duplicate "\n" when using sqlformat tool (fixes #191).Andi Albrecht2015-07-262-1/+2
|
* Don't treat DECLARE within BEGIN blocks as relevant to split level (fixes #193).Andi Albrecht2015-07-263-2/+14
|
* Improve detection of aliased identifiers (fixes #185).Andi Albrecht2015-04-193-2/+9
|
* Switch back to development mode.Andi Albrecht2015-04-152-1/+7
|
* Update version number.0.1.15Andi Albrecht2015-04-152-3/+3
|
* Never interpret IN keyword as function name (fixes #183).Andi Albrecht2015-04-123-1/+11
|
* Update offset when adding line break (fixes 184).Andi Albrecht2015-04-121-0/+1
| | | | This change fixes a regression introduced in 8c5c0684ac61ab7d0c5e77881728c8106f2877f9.
* Add coverage.xml to .gitignore.Andi Albrecht2015-03-291-1/+2
|
* Fix other regex to identify comments starting with '#' character.Andi Albrecht2015-03-161-1/+1
|
* Support comments starting with '#' character (fixes #178).Andi Albrecht2015-03-163-1/+12
|
* Update Changelog.Andi Albrecht2015-03-051-1/+2
|
* Merge pull request #177 from darikg/bracketsAndi Albrecht2015-03-055-52/+125
|\ | | | | Better square bracket / array index handling
| * Add a bunch of square bracket testsDarik Gamble2015-03-041-26/+46
| |
| * Group square-brackets into identifiersDarik Gamble2015-03-042-8/+10
| | | | | | | | Indentifier.get_array_indices() looks for square brackets, and yields lists of bracket grouped tokens as array indices
| * Parse square brackets as a group just like parensDarik Gamble2015-03-042-4/+52
| | | | | | | | | | - add class sql.SquareBrackets - replace group_parenthesis() with more generic group_brackets(), which groups square and round brackets, so each can contain groups of the other
| * Move _find_matching to a module-level functionDarik Gamble2015-03-041-11/+13
| |
| * get rid of tokens.Punctuation.ArrayIndex, add negative lookbehind for sqlite ↵Darik Gamble2015-03-042-3/+4
|/ | | | identifiers
* Allow identifiers to start with an underscore (fixes #175).Andi Albrecht2015-03-013-2/+11
|
* Update Changelog.Andi Albrecht2015-02-272-0/+2
|
* Merge pull request #174 from caseyching/masterAndi Albrecht2015-02-272-2/+5
|\ | | | | Recognize escaped backslashes within strings
| * Recognize escaped backslashes within stringscasey2015-02-262-2/+5
|/ | | | | Previously if a single quoted string ended with an escaped backslash, parsing would not consider the string to be terminated.
* Update changelog.Andi Albrecht2015-02-211-1/+1
|
* Update changelog.Andi Albrecht2015-02-211-0/+1
|
* Merge branch 'master' of github.com:andialbrecht/sqlparseAndi Albrecht2015-02-213-42/+92
|\
| * Merge pull request #171 from darikg/alias_bugfixAndi Albrecht2015-02-213-42/+92
| |\ | | | | | | Fix #167
| | * Add a bunch of extra tests for assigning aliases without the AS keywordDarik Gamble2015-02-091-0/+40
| | |
| | * Fix testDarik Gamble2015-02-091-1/+1
| | | | | | | | | | | | | | | Previously, in this test, "(select y from foo where bar = 1) z" was parsed as <Parens><Whitespace><Name z>. It is now parsing as <Identifier alias z>, so change the nested token indexing to match
| | * Fix testDarik Gamble2015-02-091-4/+5
| | | | | | | | | | | | | | | | | | | | | In this test, "(y2) bar" was previously parsed as <Parens "y2"><whitespace><Name bar>, Similarly (x3) x2 was <Parens><whitespace><Name x2>, now <Identifier alias x2>. Change the number of top level tokens and nested token indexing to match.
| | * Move get_parent_name() from Identifer to TokenList (so Function can use it)Darik Gamble2015-02-091-21/+11
| | |
| | * get_name() uses _get_first_name()Darik Gamble2015-02-091-0/+4
| | |
| | * get_alias() uses _get_first_name(), and searches in reverse for "column ↵Darik Gamble2015-02-091-13/+9
| | | | | | | | | | | | expression alias"
| | * TokenList convenience method _get_first_nameDarik Gamble2015-02-091-0/+18
| | |
| | * Group adjacent names to allow aliasing without the AS keywordDarik Gamble2015-02-091-3/+4
| | |
* | | Update changelog.Andi Albrecht2015-02-212-4/+7
|/ /
* | Merge pull request #172 from JacekPliszka/masterAndi Albrecht2015-02-213-2/+15
|\ \ | |/ |/| Fix pathological case of empty statement
| * Fix of problem with multiline treated as stackable while /* /* */ is one ↵JacekPliszka2015-02-122-1/+10
| | | | | | | | comment, not two stacked
| * Fix pathological case of empty statementJacekPliszka2015-02-121-1/+5
|/
* Update Changelog.Andi Albrecht2015-02-081-0/+1
|
* (postgresql) Add support for square bracket array indexing, by darikg.Andi Albrecht2015-02-085-1/+61
| | | | Pull request #170 with trivial conflicts resolved.
* Update Changelog and AUTHORS.Andi Albrecht2015-02-082-0/+2
|
* Merge pull request #169 from darikg/double_precisionAndi Albrecht2015-02-082-0/+10
|\ | | | | (postgresql) Add "double precision" as a built-in datatype
| * Add double precision as a built-in datatypeDarik Gamble2015-02-062-0/+10
|/
* Update changelog.Andi Albrecht2015-01-171-1/+1
|
* Sort Name.Builtin.Andi Albrecht2015-01-171-5/+5
|
* Add TINYINT keyword (fixes #154).Andi Albrecht2015-01-172-1/+2
|
* Add SIGNED keyword (fixes #155).Andi Albrecht2015-01-172-1/+2
|
* Add UNSIGNED keyword (fixes #156).Andi Albrecht2015-01-172-0/+2
|
* Group comments to parent object (fixes #160).Andi Albrecht2015-01-173-10/+26
|
* Improve parsing of inline comments for identifiers (fixes #163).Andi Albrecht2015-01-164-1/+13
|
* Merge branch 'master' of github.com:andialbrecht/sqlparseAndi Albrecht2014-12-211-1/+1
|\