Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
754c7d53
Commit
754c7d53
authored
Sep 03, 2006
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix LLONG_MAX define used by new int64 FETCH/MOVE patch.
parent
b0e54684
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/backend/tcop/pquery.c
src/backend/tcop/pquery.c
+2
-2
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+8
-1
No files found.
src/backend/tcop/pquery.c
View file @
754c7d53
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.10
8 2006/09/02 18:17:17
momjian Exp $
* $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.10
9 2006/09/03 01:15:40
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -1347,7 +1347,7 @@ DoPortalRunFetch(Portal portal,
...
@@ -1347,7 +1347,7 @@ DoPortalRunFetch(Portal portal,
* we are. In any case, we arrange to fetch the target row
* we are. In any case, we arrange to fetch the target row
* going forwards.
* going forwards.
*/
*/
if
(
portal
->
posOverflow
||
portal
->
portalPos
==
LLONG_MAX
||
if
(
portal
->
posOverflow
||
portal
->
portalPos
==
FETCH_ALL
||
count
-
1
<=
portal
->
portalPos
/
2
)
count
-
1
<=
portal
->
portalPos
/
2
)
{
{
DoPortalRewind
(
portal
);
DoPortalRewind
(
portal
);
...
...
src/include/nodes/parsenodes.h
View file @
754c7d53
...
@@ -7,13 +7,15 @@
...
@@ -7,13 +7,15 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.32
7 2006/09/02 18:17:17
momjian Exp $
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.32
8 2006/09/03 01:15:40
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#ifndef PARSENODES_H
#ifndef PARSENODES_H
#define PARSENODES_H
#define PARSENODES_H
#include "limits.h"
#include "nodes/primnodes.h"
#include "nodes/primnodes.h"
#include "nodes/value.h"
#include "nodes/value.h"
...
@@ -1439,7 +1441,12 @@ typedef enum FetchDirection
...
@@ -1439,7 +1441,12 @@ typedef enum FetchDirection
FETCH_RELATIVE
FETCH_RELATIVE
}
FetchDirection
;
}
FetchDirection
;
#ifdef HAVE_INT64
#define FETCH_ALL LLONG_MAX
#define FETCH_ALL LLONG_MAX
#else
#define FETCH_ALL LONG_MAX
#endif
typedef
struct
FetchStmt
typedef
struct
FetchStmt
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment