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

Commit94b914f

Browse files
committed
ecpg: Restore detection of unsupported COPY FROM STDIN.
The ecpg command includes code to warn about unsupported COPY FROM STDINstatements in input files. However, since commit3d009e4,this functionality has been broken due to a bug introduced in that commit,causing ecpg to fail to detect the statement.This commit resolves the issue, restoring ecpg's ability to detectCOPY FROM STDIN and issue a warning as intended.Back-patch to all supported versions.Author: Ryo KanbayashiReviewed-by: Hayato Kuroda, Tom LaneDiscussion:https://postgr.es/m/CANOn0Ez_t5uDCUEV8c1YORMisJiU5wu681eEVZzgKwOeiKhkqQ@mail.gmail.com
1 parent4cb560b commit94b914f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/interfaces/ecpg/preproc/ecpg.addons

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ ECPG: block where_or_current_clause WHERE CURRENT_P OF cursor_name
240240
@$ = cat_str(2, "where current of", cursor_marker);
241241
}
242242
ECPG: addon CopyStmt COPY opt_binary qualified_name opt_column_list copy_from opt_program copy_file_name copy_delimiter opt_with copy_options where_clause
243-
if (strcmp(@6, "from") == 0 &&
243+
if (strcmp(@5, "from") == 0 &&
244244
(strcmp(@7, "stdin") == 0 || strcmp(@7, "stdout") == 0))
245245
mmerror(PARSE_ERROR, ET_WARNING, "COPY FROM STDIN is not implemented");
246246
ECPG: addon var_value NumericOnly

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp