Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: taozhi8833998/node-sql-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.0
Choose a base ref
...
head repository: taozhi8833998/node-sql-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.2.0
Choose a head ref

Commits on Apr 29, 2024

  1. build(deps-dev): bump @babel/cli from 7.24.1 to 7.24.5

    Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.24.1 to 7.24.5.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/cli"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 29, 2024
    Copy the full SHA
    dd096eb View commit details
  2. build(deps-dev): bump @babel/core from 7.24.4 to 7.24.5

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.4 to 7.24.5.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 29, 2024
    Copy the full SHA
    28c2763 View commit details
  3. build(deps-dev): bump @babel/preset-env from 7.24.4 to 7.24.5

    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.4 to 7.24.5.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-preset-env)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/preset-env"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Apr 29, 2024
    Copy the full SHA
    1e4f302 View commit details

Commits on Apr 30, 2024

  1. Merge pull request #1890 from taozhi8833998/refactor-github-action

    refactor: update github action
    taozhi8833998 authored Apr 30, 2024
    Copy the full SHA
    25989ba View commit details

Commits on May 1, 2024

  1. Merge pull request #1886 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/preset-env-7.24.5
    
    build(deps-dev): bump @babel/preset-env from 7.24.4 to 7.24.5
    taozhi8833998 authored May 1, 2024
    Copy the full SHA
    4bbf349 View commit details

Commits on May 2, 2024

  1. Merge pull request #1885 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/core-7.24.5
    
    build(deps-dev): bump @babel/core from 7.24.4 to 7.24.5
    taozhi8833998 authored May 2, 2024
    Copy the full SHA
    ed971cb View commit details

Commits on May 3, 2024

  1. Merge pull request #1884 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/cli-7.24.5
    
    build(deps-dev): bump @babel/cli from 7.24.1 to 7.24.5
    taozhi8833998 authored May 3, 2024
    Copy the full SHA
    36a01d7 View commit details

Commits on May 5, 2024

  1. Copy the full SHA
    a6f931d View commit details

Commits on May 6, 2024

  1. Merge pull request #1893 from taozhi8833998/fix-unary-operator-redshift

    fix: unary operator in redshift
    taozhi8833998 authored May 6, 2024
    Copy the full SHA
    9970976 View commit details

Commits on May 7, 2024

  1. Copy the full SHA
    7d065a2 View commit details

Commits on May 8, 2024

  1. Merge pull request #1895 from taozhi8833998/fix-string-agg-func-pg

    fix: string_agg function in pg
    taozhi8833998 authored May 8, 2024
    Copy the full SHA
    bd26cf1 View commit details
  2. fix: types definition

    taozhi8833998 committed May 8, 2024
    Copy the full SHA
    77db53a View commit details
  3. Merge pull request #1896 from taozhi8833998/fix-type

    fix: types definition
    taozhi8833998 authored May 8, 2024
    Copy the full SHA
    33dbb14 View commit details

Commits on May 9, 2024

  1. build(deps-dev): bump chai from 4.4.1 to 5.1.1

    Bumps [chai](https://github.com/chaijs/chai) from 4.4.1 to 5.1.1.
    - [Release notes](https://github.com/chaijs/chai/releases)
    - [Changelog](https://github.com/chaijs/chai/blob/main/History.md)
    - [Commits](chaijs/chai@v4.4.1...v5.1.1)
    
    ---
    updated-dependencies:
    - dependency-name: chai
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 9, 2024
    Copy the full SHA
    6710529 View commit details

Commits on May 10, 2024

  1. fix: sum expr in mysql

    taozhi8833998 committed May 10, 2024
    Copy the full SHA
    8db229a View commit details

Commits on May 11, 2024

  1. Merge pull request #1899 from taozhi8833998/fix-sum-expr-mysql

    fix: sum expr in mysql
    taozhi8833998 authored May 11, 2024
    Copy the full SHA
    3ad2aa6 View commit details

Commits on May 12, 2024

  1. Copy the full SHA
    d2f34ba View commit details

Commits on May 13, 2024

  1. Merge pull request #1901 from taozhi8833998/refactor-escape-test-case…

    …-mysql
    
    refactor: add escape test case for mysql
    taozhi8833998 authored May 13, 2024
    Copy the full SHA
    ef6b73c View commit details
  2. Copy the full SHA
    53b2c99 View commit details
  3. Merge pull request #1903 from taozhi8833998/fix-over-partition-extrac…

    …t-athena
    
    fix: over partition and extract in athena
    taozhi8833998 authored May 13, 2024
    Copy the full SHA
    252c21e View commit details
  4. Copy the full SHA
    902326c View commit details
  5. Merge pull request #1904 from taozhi8833998/fix-get-location-func-red…

    …shift
    
    fix: add getLocationObject function in redshift
    taozhi8833998 authored May 13, 2024
    Copy the full SHA
    d02ff40 View commit details
  6. build(deps-dev): bump rimraf from 5.0.5 to 5.0.7

    Bumps [rimraf](https://github.com/isaacs/rimraf) from 5.0.5 to 5.0.7.
    - [Changelog](https://github.com/isaacs/rimraf/blob/main/CHANGELOG.md)
    - [Commits](isaacs/rimraf@v5.0.5...v5.0.7)
    
    ---
    updated-dependencies:
    - dependency-name: rimraf
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 13, 2024
    Copy the full SHA
    8e181ef View commit details

Commits on May 14, 2024

  1. Merge pull request #1905 from taozhi8833998/dependabot/npm_and_yarn/r…

    …imraf-5.0.7
    
    build(deps-dev): bump rimraf from 5.0.5 to 5.0.7
    taozhi8833998 authored May 14, 2024
    Copy the full SHA
    eed44fc View commit details

Commits on May 17, 2024

  1. Merge pull request #1898 from taozhi8833998/dependabot/npm_and_yarn/c…

    …hai-5.1.1
    
    build(deps-dev): bump chai from 4.4.1 to 5.1.1
    taozhi8833998 authored May 17, 2024
    Copy the full SHA
    4973dc1 View commit details
  2. Copy the full SHA
    8542c56 View commit details
  3. Merge pull request #1908 from taozhi8833998/revert-1898-dependabot/np…

    …m_and_yarn/chai-5.1.1
    
    Revert "build(deps-dev): bump chai from 4.4.1 to 5.1.1"
    taozhi8833998 authored May 17, 2024
    Copy the full SHA
    57e6346 View commit details

Commits on May 18, 2024

  1. Copy the full SHA
    54be8a0 View commit details

Commits on May 20, 2024

  1. fix: pg type generation

    taozhi8833998 committed May 20, 2024
    Copy the full SHA
    a8ea6b9 View commit details
  2. Copy the full SHA
    f3c560b View commit details

Commits on May 21, 2024

  1. Merge pull request #1911 from taozhi8833998/feat-multiple-set-items-m…

    …ysql
    
    feat: support multiple set items in mysql
    taozhi8833998 authored May 21, 2024
    Copy the full SHA
    a6b7aa4 View commit details
  2. Copy the full SHA
    263be9a View commit details

Commits on May 22, 2024

  1. Merge pull request #1913 from ellieapi/new-types-for-snowflake

    Added support for additional snowflake data types
    taozhi8833998 authored May 22, 2024
    Copy the full SHA
    33a0dc6 View commit details

Commits on May 24, 2024

  1. build(deps-dev): bump @babel/preset-env from 7.24.5 to 7.24.6

    Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.5 to 7.24.6.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-preset-env)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/preset-env"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 24, 2024
    Copy the full SHA
    6c2b1f4 View commit details
  2. build(deps-dev): bump @babel/core from 7.24.5 to 7.24.6

    Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.5 to 7.24.6.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-core)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/core"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 24, 2024
    Copy the full SHA
    ee23531 View commit details
  3. build(deps-dev): bump @babel/cli from 7.24.5 to 7.24.6

    Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.24.5 to 7.24.6.
    - [Release notes](https://github.com/babel/babel/releases)
    - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-cli)
    
    ---
    updated-dependencies:
    - dependency-name: "@babel/cli"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored May 24, 2024
    Copy the full SHA
    6b8e1c8 View commit details

Commits on May 26, 2024

  1. Merge pull request #1917 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/preset-env-7.24.6
    
    build(deps-dev): bump @babel/preset-env from 7.24.5 to 7.24.6
    taozhi8833998 authored May 26, 2024
    Copy the full SHA
    b94678b View commit details

Commits on May 27, 2024

  1. Copy the full SHA
    b2f4281 View commit details

Commits on May 28, 2024

  1. Merge pull request #1924 from taozhi8833998/fix-create-db-quoted-name

    fix: create database with quoted db name in all dialect
    taozhi8833998 authored May 28, 2024
    Copy the full SHA
    df125f8 View commit details

Commits on May 29, 2024

  1. Merge pull request #1920 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/cli-7.24.6
    
    build(deps-dev): bump @babel/cli from 7.24.5 to 7.24.6
    taozhi8833998 authored May 29, 2024
    Copy the full SHA
    2a45ed1 View commit details

Commits on May 30, 2024

  1. Merge pull request #1919 from taozhi8833998/dependabot/npm_and_yarn/b…

    …abel/core-7.24.6
    
    build(deps-dev): bump @babel/core from 7.24.5 to 7.24.6
    taozhi8833998 authored May 30, 2024
    Copy the full SHA
    7d9ef8c View commit details

Commits on May 31, 2024

  1. Copy the full SHA
    b58d0a0 View commit details
  2. Copy the full SHA
    cfcbfdf View commit details

Commits on Jun 1, 2024

  1. Merge pull request #1930 from taozhi8833998/feat-create-table-mysql

    feat: support create table in mysql 8.x and drop view in sqlite
    taozhi8833998 authored Jun 1, 2024
    Copy the full SHA
    a3e448e View commit details

Commits on Jun 2, 2024

  1. Copy the full SHA
    8934f80 View commit details

Commits on Jun 3, 2024

  1. Merge pull request #1932 from taozhi8833998/refactor-version

    refactor: upgrade version
    taozhi8833998 authored Jun 3, 2024
    Copy the full SHA
    2f55022 View commit details
17 changes: 13 additions & 4 deletions ast/postgresql.ts
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ export type create_db_stmt_t = {
type: 'create',
keyword: 'database' | 'schema',
if_not_exists?: 'if not exists',
database: string,
database: ident_without_kw_type,
create_definitions?: create_db_definition
}

@@ -618,7 +618,8 @@ export type rename_stmt = AstStatement<rename_stmt_node>;

export interface set_stmt_node {
type: 'set';
expr: assign_stmt & { keyword?: 'GLOBAL' | 'SESSION' | 'LOCAL' | 'PERSIST' | 'PERSIST_ONLY'; };
keyword?: 'GLOBAL' | 'SESSION' | 'LOCAL' | 'PERSIST' | 'PERSIST_ONLY' | undefined;
expr: assign_stmt_list;
}

export type set_stmt = AstStatement<set_stmt_node>;
@@ -1145,6 +1146,10 @@ export type column_ref_array_index = column_ref;

export type primary = cast_expr | or_and_where_expr | var_decl | { type: 'origin'; value: string; };

export type unary_expr_or_primary = primary | unary_expr;

export type unary_operator = "!" | "-" | "+" | "~";

export type string_constants_escape = { type: 'origin'; value: string; };


@@ -1246,7 +1251,7 @@ type KW_SUM_MAX_MIN_AVG = never;

export type aggr_fun_count = { type: 'aggr_func'; name: 'COUNT' | 'GROUP_CONCAT'; args:count_arg; over: over_partition } | { type: 'aggr_func'; name: 'PERCENTILE_CONT' | 'PERCENTILE_DISC'; args: literal_numeric | literal_array; within_group_orderby: order_by_clause; over?: over_partition } | { type: 'aggr_func'; name: 'MODE'; args: literal_numeric | literal_array; within_group_orderby: order_by_clause; over?: over_partition };

export type concat_separator = { keyword: string | null; value: literal_string; };
export type concat_separator = { symbol: ','; delimiter: literal_string; };



@@ -1258,7 +1263,7 @@ export type distinct_args = { distinct: 'DISTINCT'; expr: expr; orderby?: order_

export type count_arg = { expr: star_expr } | distinct_args;

export type aggr_array_agg = { type: 'aggr_func'; args:count_arg; name: 'ARRAY_AGG'; orderby?: order_by_clause };
export type aggr_array_agg = { type: 'aggr_func'; args:count_arg; name: 'ARRAY_AGG' | 'STRING_AGG'; };



@@ -1503,6 +1508,8 @@ type KW_ARRAY = never;

type KW_ARRAY_AGG = never;

type KW_STRING_AGG = never;

type KW_COUNT = never;

type KW_GROUP_CONCAT = never;
@@ -1785,6 +1792,8 @@ export interface proc_stmt_t { type: 'proc'; stmt: assign_stmt | return_stmt; va

export type proc_stmt = AstStatement<proc_stmt_t>;

export type assign_stmt_list = assign_stmt[];

export type assign_stmt = { type: 'assign'; left: var_decl | without_prefix_var_decl; symbol: ':=' | '='; right: proc_expr; };

export type return_stmt = { type: 'return'; expr: proc_expr; };
Loading