aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc
diff options
context:
space:
mode:
authorGreg Stark <stark@mit.edu>2013-07-29 23:43:44 +0100
committerGreg Stark <stark@mit.edu>2013-07-29 23:44:11 +0100
commit69b7d59a744134e33bbe51dab44dd4113c83b7fb (patch)
treee3d4ce55850315694f7a6a3d070a4c7ab2a26620 /src/interfaces/ecpg/preproc
parentc62736cc37f6812d1ebb41ea5a86ffe60564a1f0 (diff)
downloadpostgresql-69b7d59a744134e33bbe51dab44dd4113c83b7fb.tar.gz
postgresql-69b7d59a744134e33bbe51dab44dd4113c83b7fb.zip
Sync ECPG with WITH ORDINALITY changes
Diffstat (limited to 'src/interfaces/ecpg/preproc')
-rw-r--r--src/interfaces/ecpg/preproc/parse.pl1
-rw-r--r--src/interfaces/ecpg/preproc/parser.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/parse.pl b/src/interfaces/ecpg/preproc/parse.pl
index f4b51d679ac..09310b330fe 100644
--- a/src/interfaces/ecpg/preproc/parse.pl
+++ b/src/interfaces/ecpg/preproc/parse.pl
@@ -43,6 +43,7 @@ my %replace_token = (
# or in the block
my %replace_string = (
'WITH_TIME' => 'with time',
+ 'WITH_ORDINALITY' => 'with ordinality',
'NULLS_FIRST' => 'nulls first',
'NULLS_LAST' => 'nulls last',
'TYPECAST' => '::',
diff --git a/src/interfaces/ecpg/preproc/parser.c b/src/interfaces/ecpg/preproc/parser.c
index 2ce9dd91c01..c18615e2b05 100644
--- a/src/interfaces/ecpg/preproc/parser.c
+++ b/src/interfaces/ecpg/preproc/parser.c
@@ -108,6 +108,9 @@ filtered_base_yylex(void)
case TIME:
cur_token = WITH_TIME;
break;
+ case ORDINALITY:
+ cur_token = WITH_ORDINALITY;
+ break;
default:
/* save the lookahead token for next time */
lookahead_token = next_token;