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
103cf756
Commit
103cf756
authored
Jul 09, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-apply range check patch after fixing LIMIT_H test and defines.
parent
cd5dfb65
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
doc/TODO
doc/TODO
+2
-0
src/backend/utils/adt/numutils.c
src/backend/utils/adt/numutils.c
+7
-7
src/interfaces/odbc/gpps.c
src/interfaces/odbc/gpps.c
+1
-1
No files found.
doc/TODO
View file @
103cf756
...
...
@@ -36,6 +36,7 @@ PARSER
* UNION with LIMIT fails
* Unique index on base column not honored on inserts from inherited table
INSERT INTO inherit_table (unique_index_col) VALUES (dup) should fail
* CREATE TABLE x AS SELECT 1 UNION SELECT 2 fails
VIEWS
...
...
@@ -175,6 +176,7 @@ MISC
* Add PL/Perl(Mark Hollomon)
* Make postgres user have a password by default
* Add configure test to check for C++ need for *.h and namespaces
* Allow BLCKSZ <= 64k, not <= 32k
PERFORMANCE
-----------
...
...
src/backend/utils/adt/numutils.c
View file @
103cf756
...
...
@@ -10,14 +10,14 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.3
2 1999/07/09 03:27:20
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.3
3 1999/07/09 17:40:31
momjian Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
/* for sprintf() */
#include <errno.h>
#include <math.h>
#ifdef HAVE_LIMITS
#ifdef HAVE_LIMITS
_H
#include <limits.h>
#endif
#include "postgres.h"
...
...
@@ -32,19 +32,19 @@
#define INT_MAX (0x7FFFFFFFL)
#endif
#ifndef INT_MIN
#define INT_MIN (-
0x80000000L
)
#define INT_MIN (-
INT_MAX-1
)
#endif
#ifndef SHRT_MAX
#define SHRT_MAX (0x7FFF)
#endif
#ifndef SHRT_MIN
#define SHRT_MIN (-
0x8000
)
#define SHRT_MIN (-
SHRT_MAX-1
)
#endif
#ifndef SCHAR_MAX
#define SCHAR_MAX (0x7F)
#endif
#ifndef SCHAR_MIN
#define SCHAR_MIN (-
0x80
)
#define SCHAR_MIN (-
SCHAR_MAX-1
)
#endif
int32
...
...
@@ -76,7 +76,7 @@ pg_atoi(char *s, int size, int c)
switch
(
size
)
{
case
sizeof
(
int32
):
#if
def HAS_LONG_LONG
#if
defined(HAVE_LONG_INT_64) || defined(HAVE_LONG_LONG_INT_64)
/* won't get ERANGE on these with 64-bit longs... */
if
(
l
<
INT_MIN
)
{
...
...
@@ -88,7 +88,7 @@ pg_atoi(char *s, int size, int c)
errno
=
ERANGE
;
elog
(
ERROR
,
"pg_atoi: error reading
\"
%s
\"
: %m"
,
s
);
}
#endif
/* HAS_LONG_LONG
*/
#endif
/* HAVE_LONG_INT_64 or HAVE_LONG_LONG_INT_64
*/
break
;
case
sizeof
(
int16
):
if
(
l
<
SHRT_MIN
)
...
...
src/interfaces/odbc/gpps.c
View file @
103cf756
...
...
@@ -36,7 +36,7 @@
#define FALSE ((BOOL)0)
#endif
#if HAVE_PARAM_H
#if HAVE_
SYS_
PARAM_H
#include <sys/param.h>
#else
#define MAXPATHLEN 255
...
...
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