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
45d146a6
Commit
45d146a6
authored
Nov 10, 2008
by
Heikki Linnakangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'Q' format char parsing in the new to_timestamp() code. Used to crash.
parent
6462e7b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/backend/utils/adt/formatting.c
src/backend/utils/adt/formatting.c
+4
-3
No files found.
src/backend/utils/adt/formatting.c
View file @
45d146a6
/* -----------------------------------------------------------------------
* formatting.c
*
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.1
49 2008/10/06 05:03:27 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.1
50 2008/11/10 17:36:53 heikki
Exp $
*
*
* Portions Copyright (c) 1999-2008, PostgreSQL Global Development Group
...
...
@@ -1771,7 +1771,7 @@ from_char_set_int(int *dest, const int value, const FormatNode *node)
/*
* Read a single integer from the source string, into the int pointed to by
* 'dest'.
* 'dest'.
If 'dest' is NULL, the result is discarded.
*
* In fixed-width mode (the node does not have the FM suffix), consume at most
* 'len' characters.
...
...
@@ -1862,7 +1862,8 @@ from_char_parse_int_len(int *dest, char **src, const int len, FormatNode *node)
errdetail
(
"Value must be in the range %d to %d."
,
INT_MIN
,
INT_MAX
)));
from_char_set_int
(
dest
,
(
int
)
result
,
node
);
if
(
dest
!=
NULL
)
from_char_set_int
(
dest
,
(
int
)
result
,
node
);
return
*
src
-
init
;
}
...
...
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