Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
4379ce83
Commit
4379ce83
authored
27 years ago
by
Vadim B. Mikheev
Browse files
Options
Downloads
Patches
Plain Diff
Quick hack to get CHECK working for incoming betta.
parent
4587547f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/parser/scan.l
+15
-3
15 additions, 3 deletions
src/backend/parser/scan.l
with
15 additions
and
3 deletions
src/backend/parser/scan.l
+
15
−
3
View file @
4379ce83
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
19
1997/09/
08 03:20:04 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.
20
1997/09/
12 09:01:46 vadim
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -303,6 +303,7 @@ CurScanPosition(void)
...
@@ -303,6 +303,7 @@ CurScanPosition(void)
#endif /* !defined(FLEX_SCANNER) */
#endif /* !defined(FLEX_SCANNER) */
#ifdef FLEX_SCANNER
#ifdef FLEX_SCANNER
static bool end_of_buf = false;
/* input routine for flex to read input from a string instead of a file */
/* input routine for flex to read input from a string instead of a file */
int
int
myinput(char* buf, int max)
myinput(char* buf, int max)
...
@@ -320,17 +321,28 @@ myinput(char* buf, int max)
...
@@ -320,17 +321,28 @@ myinput(char* buf, int max)
memcpy(buf, parseString, copylen);
memcpy(buf, parseString, copylen);
buf[copylen] = '\0';
buf[copylen] = '\0';
parseCh = parseString;
parseCh = parseString;
end_of_buf = false;
return copylen;
return copylen;
}
}
else
else
{
end_of_buf = true;
return 0; /* end of string */
return 0; /* end of string */
}
}
}
int
int
CurScanPosition(void)
CurScanPosition(void)
{
{
printf( "current position is %d\n", yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
int spos;
return (yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng);
if ( end_of_buf )
spos = strlen (parseString) - strlen (yytext);
else
spos = yy_c_buf_p - yy_current_buffer->yy_ch_buf - yyleng;
printf( "current position is %d\n", spos);
return (spos);
}
}
#endif /* FLEX_SCANNER */
#endif /* FLEX_SCANNER */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment