Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
51867a0f
Commit
51867a0f
authored
Nov 27, 2013
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECPG: Fix searching for quoted cursor names case-sensitively.
Patch by Böszörményi Zoltán <zb@cybertec.at>
parent
d1b88f6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/interfaces/ecpg/preproc/ecpg.addons
src/interfaces/ecpg/preproc/ecpg.addons
+1
-1
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.header
+1
-1
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.trailer
+1
-1
No files found.
src/interfaces/ecpg/preproc/ecpg.addons
View file @
51867a0f
...
@@ -290,7 +290,7 @@ ECPG: DeclareCursorStmtDECLAREcursor_namecursor_optionsCURSORopt_holdFORSelectSt
...
@@ -290,7 +290,7 @@ ECPG: DeclareCursorStmtDECLAREcursor_namecursor_optionsCURSORopt_holdFORSelectSt
struct cursor *ptr, *this;
struct cursor *ptr, *this;
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
char *comment, *c1, *c2;
char *comment, *c1, *c2;
int (* strcmp_fn)(const char *, const char *) = (
$2[0] == ':'
? strcmp : pg_strcasecmp);
int (* strcmp_fn)(const char *, const char *) = (
($2[0] == ':' || $2[0] == '"')
? strcmp : pg_strcasecmp);
for (ptr = cur; ptr != NULL; ptr = ptr->next)
for (ptr = cur; ptr != NULL; ptr = ptr->next)
{
{
...
...
src/interfaces/ecpg/preproc/ecpg.header
View file @
51867a0f
...
@@ -492,7 +492,7 @@ add_additional_variables(char *name, bool insert)
...
@@ -492,7 +492,7 @@ add_additional_variables(char *name, bool insert)
{
{
struct cursor *ptr;
struct cursor *ptr;
struct arguments *p;
struct arguments *p;
int (* strcmp_fn)(const char *, const char *) = (
name[0] == ':'
? strcmp : pg_strcasecmp);
int (* strcmp_fn)(const char *, const char *) = (
(name[0] == ':' || name[0] == '"')
? strcmp : pg_strcasecmp);
for (ptr = cur; ptr != NULL; ptr=ptr->next)
for (ptr = cur; ptr != NULL; ptr=ptr->next)
{
{
...
...
src/interfaces/ecpg/preproc/ecpg.trailer
View file @
51867a0f
...
@@ -291,7 +291,7 @@ ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared
...
@@ -291,7 +291,7 @@ ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared
{
{
struct cursor *ptr, *this;
struct cursor *ptr, *this;
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
int (* strcmp_fn)(const char *, const char *) = (
$2[0] == ':'
? strcmp : pg_strcasecmp);
int (* strcmp_fn)(const char *, const char *) = (
($2[0] == ':' || $2[0] == '"')
? strcmp : pg_strcasecmp);
struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
const char *con = connection ? connection : "NULL";
const char *con = connection ? connection : "NULL";
char *comment;
char *comment;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment