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

Commit95016ee

Browse files
committed
make clang-analyzer happy about 'rel'
1 parent9fd99a3 commit95016ee

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/copy_stmt_hooking.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,11 @@ PathmanDoCopy(const CopyStmt *stmt, const char *queryString, uint64 *processed)
294294
/* COPY ... FROM ... */
295295
if (is_from)
296296
{
297-
boolis_old_protocol;
298-
299-
is_old_protocol=PG_PROTOCOL_MAJOR(FrontendProtocol)<3&&
300-
stmt->filename==NULL;
297+
boolis_old_protocol=PG_PROTOCOL_MAJOR(FrontendProtocol)<3&&
298+
stmt->filename==NULL;
301299

302300
/* There should be relation */
303-
Assert(rel);
301+
if (!rel)elog(FATAL,"No relation for PATHMAN COPY FROM");
304302

305303
/* check read-only transaction and parallel mode */
306304
if (XactReadOnly&&rel&& !rel->rd_islocaltemp)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp