summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into v0.2.0v0.2.0Andi Albrecht2015-07-269-9/+69
|\
| * Switch back to development.Andi Albrecht2015-07-262-1/+7
| |
| * Prepare next release.0.1.16Andi Albrecht2015-07-262-3/+3
| |
| * Ignore comments at beginning of statement when calling Statement.get_type ↵Andi Albrecht2015-07-263-2/+18
| | | | | | | | (fixes #186).
| * Recognize MSSQL temp tables and distinguish from MySQL comments (fixes #192).Andi Albrecht2015-07-263-3/+15
| |
| * 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
| |
* | Merge remote-tracking branch 'origin/master' into v0.2.0Andi Albrecht2015-04-126-4/+27
|\ \ | |/
| * 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
| |
* | Merge master into v0.2.0.Andi Albrecht2015-03-058-59/+146
|\ \ | |/
| * 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.
* | Merge master into v0.2.0 branch.Andi Albrecht2015-02-2110-48/+189
|\ \ | |/
| * 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
| |/