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

Commita95a82e

Browse files
committed
Uppercase SQL keywords in query for clarity.
1 parentd7b7a4a commita95a82e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.386 2004/08/29 05:06:53 momjian Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.387 2004/10/06 17:43:07 momjian Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -1395,15 +1395,15 @@ dumpBlobs(Archive *AH, void *arg)
13951395

13961396
/* Cursor to get all BLOB tables */
13971397
if (AH->remoteVersion >=70100)
1398-
appendPQExpBuffer(oidQry,"Declare blobOid Cursor for SELECT DISTINCT loid FROM pg_largeobject");
1398+
appendPQExpBuffer(oidQry,"DECLARE bloboid CURSOR FOR SELECT DISTINCT loid FROM pg_largeobject");
13991399
else
1400-
appendPQExpBuffer(oidQry,"Declare blobOid Cursor for SELECT oid from pg_class where relkind = 'l'");
1400+
appendPQExpBuffer(oidQry,"DECLARE bloboid CURSOR FOR SELECT oid from pg_class where relkind = 'l'");
14011401

14021402
res=PQexec(g_conn,oidQry->data);
14031403
check_sql_result(res,g_conn,oidQry->data,PGRES_COMMAND_OK);
14041404

14051405
/* Fetch for cursor */
1406-
appendPQExpBuffer(oidFetchQry,"Fetch %din blobOid",loFetchSize);
1406+
appendPQExpBuffer(oidFetchQry,"FETCH %dIN bloboid",loFetchSize);
14071407

14081408
do
14091409
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp