Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pegjs/postgresql.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -4069,7 +4069,7 @@ ident_name

ident_start = [A-Za-z_\u4e00-\u9fa5]

ident_part = [A-Za-z0-9_\-$\u4e00-\u9fa5]
ident_part = [A-Za-z0-9_\-$\u4e00-\u9fa5\u00C0-\u017F]

// to support column name like `cf1:name` in hbase
column_part = [A-Za-z0-9_\u4e00-\u9fa5]
Expand Down
9 changes: 8 additions & 1 deletion test/postgres.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,14 @@ describe('Postgres', () => {
$$ LANGUAGE plpgsql;`,
`CREATE FUNCTION refresh_mviews() RETURNS INTEGER AS $$ DECLARE mviews RECORD BEGIN RAISE NOTICE 'Refreshing all materialized views...' ; FOR mviews IN SELECT "n"."nspname" AS "mv_schema", "c"."relname" AS "mv_name", pg_catalog.pg_get_userbyid("c"."relowner") AS "owner" FROM "pg_catalog"."pg_class" AS "c" LEFT JOIN "pg_catalog"."pg_namespace" AS "n" ON ("n"."oid" = "c"."relnamespace") WHERE "c"."relkind" = 'm' ORDER BY 1 ASC LOOP RAISE NOTICE 'Refreshing materialized view %.% (owner: %)...', quote_ident("mviews"."mv_schema"), quote_ident("mviews"."mv_name"), quote_ident("mviews"."owner") ; EXECUTE format('REFRESH MATERIALIZED VIEW %I.%I', "mviews"."mv_schema", "mviews"."mv_name") END LOOP ; RAISE NOTICE 'Done refreshing materialized views.' ; RETURN 1 END $$ LANGUAGE plpgsql`
]
}
},
{
title: 'support accentuated characters',
sql: [
"SELECT 'Molière' AS théâtre",
`SELECT 'Molière' AS "théâtre"`
]
},
]
function neatlyNestTestedSQL(sqlList){
sqlList.forEach(sqlInfo => {
Expand Down