Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a95a82e

Browse files
committed
Uppercase SQL keywords in query for clarity.
1 parent d7b7a4a commit a95a82e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/pg_dump/pg_dump.c

+4-4
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 %d in blobOid", loFetchSize);
1406+
appendPQExpBuffer(oidFetchQry, "FETCH %d IN bloboid", loFetchSize);
14071407

14081408
do
14091409
{

0 commit comments

Comments
 (0)