Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1387925

Browse files
committed
Fix incorrect merge in ECPG code with DECLARE
The same condition was repeated twice when comparing the connection usedby existing declared statement with the one coming from a fresh DECLAREstatement. This had no consequences, but let's keep the code clean.Oversight inf576de1.Author: Shenhao WangDiscussion:https://postgr.es/m/OSBPR01MB42149653BC0AB0A49D23C1B8F2C69@OSBPR01MB4214.jpnprd01.prod.outlook.comBackpatch-through: 14
1 parent29b5905 commit1387925

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎src/interfaces/ecpg/preproc/ecpg.header

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ check_declared_list(const char *name)
594594
continue;
595595
if (strcmp(name, ptr -> name) == 0)
596596
{
597-
if (connection)
598597
if (connection && strcmp(ptr->connection, connection) != 0)
599598
mmerror(PARSE_ERROR, ET_WARNING, "connection %s is overwritten with %s by DECLARE statement %s", connection, ptr->connection, name);
600599
connection = mm_strdup(ptr -> connection);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp