aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-09-03 03:19:45 +0000
committerBruce Momjian <bruce@momjian.us>2006-09-03 03:19:45 +0000
commit0e20c485617c3bcde8d9f0759d5ee1ef1c442004 (patch)
tree32d5363c51684442eb74103f47baccb1c3f175c0 /src/backend/tcop/postgres.c
parentd387a0705058af6d07390dec5cb56a4720a302a6 (diff)
downloadpostgresql-0e20c485617c3bcde8d9f0759d5ee1ef1c442004.tar.gz
postgresql-0e20c485617c3bcde8d9f0759d5ee1ef1c442004.zip
Revert FETCH/MOVE int64 patch. Was using incorrect checks for
fetch/move in scan.l.
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 62ad35bc00c..6496b981cf2 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.504 2006/09/02 18:17:17 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.505 2006/09/03 03:19:44 momjian Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1687,7 +1687,7 @@ exec_bind_message(StringInfo input_message)
* Process an "Execute" message for a portal
*/
static void
-exec_execute_message(const char *portal_name, int64 max_rows)
+exec_execute_message(const char *portal_name, long max_rows)
{
CommandDest dest;
DestReceiver *receiver;
@@ -3308,13 +3308,13 @@ PostgresMain(int argc, char *argv[], const char *username)
case 'E': /* execute */
{
const char *portal_name;
- int64 max_rows;
+ int max_rows;
/* Set statement_timestamp() */
SetCurrentStatementStartTimestamp();
portal_name = pq_getmsgstring(&input_message);
- max_rows = pq_getmsgint64(&input_message);
+ max_rows = pq_getmsgint(&input_message, 4);
pq_getmsgend(&input_message);
exec_execute_message(portal_name, max_rows);