diff options
author | Neil Conway <neilc@samurai.com> | 2004-12-17 03:51:36 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-12-17 03:51:36 +0000 |
commit | 480777e56cb56d16b91656dac505e6e664c3aad9 (patch) | |
tree | 9b836143f35a4b4a1f68881b90a762fdff3b22db /src | |
parent | dfdae5d63cd0c7eb75fb419c61a5fd62c7e4b326 (diff) | |
download | postgresql-480777e56cb56d16b91656dac505e6e664c3aad9.tar.gz postgresql-480777e56cb56d16b91656dac505e6e664c3aad9.zip |
Allow 'ELSEIF' as an alternative to 'ELSIF' in PL/PgSQL. There have been
several reports of users being confused when they attempt to use ELSEIF
and run into trouble due to PL/PgSQL's lax parser. The parser will be
improved for 8.1, but we can fix most of the problem by allowing ELSEIF
for now.
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpgsql/src/scan.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pl/plpgsql/src/scan.l b/src/pl/plpgsql/src/scan.l index 9b2615df105..5e92ba76905 100644 --- a/src/pl/plpgsql/src/scan.l +++ b/src/pl/plpgsql/src/scan.l @@ -4,7 +4,7 @@ * procedural language * * IDENTIFICATION - * $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.37 2004/09/13 01:45:32 neilc Exp $ + * $PostgreSQL: pgsql/src/pl/plpgsql/src/scan.l,v 1.38 2004/12/17 03:51:36 neilc Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -144,6 +144,7 @@ declare { return K_DECLARE; } default { return K_DEFAULT; } diagnostics { return K_DIAGNOSTICS; } else { return K_ELSE; } +elseif { return K_ELSIF; } elsif { return K_ELSIF; } end { return K_END; } exception { return K_EXCEPTION; } |