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
d49fa4c8
Commit
d49fa4c8
authored
Dec 05, 2006
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in comments and error messages in HStore. Patch from Filip
Rembialkowski, with some additional fixes by myself.
parent
5b2def89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
contrib/hstore/hstore_io.c
contrib/hstore/hstore_io.c
+7
-7
contrib/hstore/hstore_op.c
contrib/hstore/hstore_op.c
+1
-1
No files found.
contrib/hstore/hstore_io.c
View file @
d49fa4c8
...
...
@@ -143,7 +143,7 @@ get_val(HSParser * state, bool ignoreeq, bool *escaped)
st
=
GV_INESCVAL
;
}
else
elog
(
ERROR
,
"Unknown state %d at postion line %d in file '%s'"
,
st
,
__LINE__
,
__FILE__
);
elog
(
ERROR
,
"Unknown state %d at pos
i
tion line %d in file '%s'"
,
st
,
__LINE__
,
__FILE__
);
state
->
ptr
++
;
}
...
...
@@ -195,11 +195,11 @@ parse_hstore(HSParser * state)
}
else
if
(
*
(
state
->
ptr
)
==
'\0'
)
{
elog
(
ERROR
,
"Unexpectd end of string"
);
elog
(
ERROR
,
"Unexpect
e
d end of string"
);
}
else
if
(
!
isspace
((
unsigned
char
)
*
(
state
->
ptr
)))
{
elog
(
ERROR
,
"Syntax error near '%c' at postion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
elog
(
ERROR
,
"Syntax error near '%c' at pos
i
tion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
}
}
else
if
(
st
==
WGT
)
...
...
@@ -210,11 +210,11 @@ parse_hstore(HSParser * state)
}
else
if
(
*
(
state
->
ptr
)
==
'\0'
)
{
elog
(
ERROR
,
"Unexpectd end of string"
);
elog
(
ERROR
,
"Unexpect
e
d end of string"
);
}
else
{
elog
(
ERROR
,
"Syntax error near '%c' at postion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
elog
(
ERROR
,
"Syntax error near '%c' at pos
i
tion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
}
}
else
if
(
st
==
WVAL
)
...
...
@@ -247,7 +247,7 @@ parse_hstore(HSParser * state)
}
else
if
(
!
isspace
((
unsigned
char
)
*
(
state
->
ptr
)))
{
elog
(
ERROR
,
"Syntax error near '%c' at postion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
elog
(
ERROR
,
"Syntax error near '%c' at pos
i
tion %d"
,
*
(
state
->
ptr
),
(
int4
)
(
state
->
ptr
-
state
->
begin
));
}
}
else
...
...
@@ -271,7 +271,7 @@ comparePairs(const void *a, const void *b)
if
(
res
)
return
res
;
/* guarantee that ne
ddfree wil
ll be later */
/* guarantee that ne
edfree wi
ll be later */
if
(((
Pairs
*
)
b
)
->
needfree
==
((
Pairs
*
)
a
)
->
needfree
)
return
0
;
else
if
(((
Pairs
*
)
a
)
->
needfree
)
...
...
contrib/hstore/hstore_op.c
View file @
d49fa4c8
...
...
@@ -112,7 +112,7 @@ delete(PG_FUNCTION_ARGS)
*
ed
;
out
->
len
=
hs
->
len
;
out
->
size
=
hs
->
size
;
/* temp
r
orary! */
out
->
size
=
hs
->
size
;
/* temporary! */
ptrs
=
STRPTR
(
hs
);
es
=
ARRPTR
(
hs
);
...
...
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