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
73b94657
Commit
73b94657
authored
Aug 27, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Throw error on pg_atoi(''), regression adjustments.
parent
7292131c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/utils/adt/numutils.c
src/backend/utils/adt/numutils.c
+3
-3
src/test/regress/expected/arrays.out
src/test/regress/expected/arrays.out
+1
-1
src/test/regress/expected/copy2.out
src/test/regress/expected/copy2.out
+1
-1
src/test/regress/sql/arrays.sql
src/test/regress/sql/arrays.sql
+1
-1
No files found.
src/backend/utils/adt/numutils.c
View file @
73b94657
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.5
1 2002/07/16 18:34:16
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.5
2 2002/08/27 20:29:10
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -58,9 +58,9 @@ pg_atoi(char *s, int size, int c)
*/
if
(
s
==
(
char
*
)
NULL
)
elog
(
ERROR
,
"pg_atoi: NULL pointer
!
"
);
elog
(
ERROR
,
"pg_atoi: NULL pointer"
);
else
if
(
*
s
==
0
)
l
=
(
long
)
0
;
elog
(
ERROR
,
"pg_atoi: zero-length string"
)
;
else
l
=
strtol
(
s
,
&
badp
,
10
);
...
...
src/test/regress/expected/arrays.out
View file @
73b94657
...
...
@@ -15,7 +15,7 @@ CREATE TABLE arrtest (
-- 'e' is also a large object.
--
INSERT INTO arrtest (a[5], b[2][1][2], c, d, f, g)
VALUES ('{1,2,3,4,5}', '{{{},{1,2}}}', '{}', '{}', '{}', '{}');
VALUES ('{1,2,3,4,5}', '{{{
0,0
},{1,2}}}', '{}', '{}', '{}', '{}');
UPDATE arrtest SET e[0] = '1.1';
UPDATE arrtest SET e[1] = '2.2';
INSERT INTO arrtest (f)
...
...
src/test/regress/expected/copy2.out
View file @
73b94657
...
...
@@ -34,7 +34,7 @@ COPY x (a, b, c, d, e, d, c) from stdin;
ERROR: Attribute "d" specified more than once
-- missing data: should fail
COPY x from stdin;
ERROR: copy: line 1,
Missing data for column "b"
ERROR: copy: line 1,
pg_atoi: zero-length string
lost synchronization with server, resetting connection
COPY x from stdin;
ERROR: copy: line 1, Missing data for column "e"
...
...
src/test/regress/sql/arrays.sql
View file @
73b94657
...
...
@@ -18,7 +18,7 @@ CREATE TABLE arrtest (
--
INSERT
INTO
arrtest
(
a
[
5
],
b
[
2
][
1
][
2
],
c
,
d
,
f
,
g
)
VALUES
(
'{1,2,3,4,5}'
,
'{{{},{1,2}}}'
,
'{}'
,
'{}'
,
'{}'
,
'{}'
);
VALUES
(
'{1,2,3,4,5}'
,
'{{{
0,0
},{1,2}}}'
,
'{}'
,
'{}'
,
'{}'
,
'{}'
);
UPDATE
arrtest
SET
e
[
0
]
=
'1.1'
;
...
...
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