Skip to content

Commit fbe9d1a

Browse files
committed
Fix for "--" comment and no trailing newline, as seen in Perl.
1 parent ae61ef3 commit fbe9d1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/parser/scan.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.57 1999/09/28 03:41:36 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.58 1999/10/08 05:03:13 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -167,7 +167,7 @@ real (((({digit}*\.{digit}+)|({digit}+\.{digit}*))([Ee][-+]?{digit}+)?)|({dig
167167

168168
param \${integer}
169169

170-
comment ("--"|"//").*\n
170+
comment ("--"|"//").*
171171

172172
space [ \t\n\f]
173173
other .

src/interfaces/perl5/test.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/local/bin/perl -w
22

3-
# $Id: test.pl,v 1.9 1998/09/27 19:12:26 mergl Exp $
3+
# $Id: test.pl,v 1.10 1999/10/08 05:03:14 momjian Exp $
44

55
# Before `make install' is performed this script should be runnable with
66
# `make test'. After `make install' it should work as `perl test.pl'
@@ -147,7 +147,7 @@
147147

148148
######################### create and insert into table
149149

150-
$result = $conn->exec("CREATE TABLE person (id int4, name char(16))");
150+
$result = $conn->exec("CREATE TABLE person (id int4, name char(16)) -- test");
151151
die $conn->errorMessage unless PGRES_COMMAND_OK eq $result->resultStatus;
152152
my $cmd = $result->cmdStatus;
153153
( "CREATE" eq $cmd )

0 commit comments

Comments
 (0)