Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd49fa4c

Browse files
author
Neil Conway
committed
Fix typos in comments and error messages in HStore. Patch from Filip
Rembialkowski, with some additional fixes by myself.
1 parent5b2def8 commitd49fa4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎contrib/hstore/hstore_io.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ get_val(HSParser * state, bool ignoreeq, bool *escaped)
143143
st=GV_INESCVAL;
144144
}
145145
else
146-
elog(ERROR,"Unknown state %d atpostion line %d in file '%s'",st,__LINE__,__FILE__);
146+
elog(ERROR,"Unknown state %d atposition line %d in file '%s'",st,__LINE__,__FILE__);
147147

148148
state->ptr++;
149149
}
@@ -195,11 +195,11 @@ parse_hstore(HSParser * state)
195195
}
196196
elseif (*(state->ptr)=='\0')
197197
{
198-
elog(ERROR,"Unexpectd end of string");
198+
elog(ERROR,"Unexpected end of string");
199199
}
200200
elseif (!isspace((unsignedchar)*(state->ptr)))
201201
{
202-
elog(ERROR,"Syntax error near '%c' atpostion %d",*(state->ptr), (int4) (state->ptr-state->begin));
202+
elog(ERROR,"Syntax error near '%c' atposition %d",*(state->ptr), (int4) (state->ptr-state->begin));
203203
}
204204
}
205205
elseif (st==WGT)
@@ -210,11 +210,11 @@ parse_hstore(HSParser * state)
210210
}
211211
elseif (*(state->ptr)=='\0')
212212
{
213-
elog(ERROR,"Unexpectd end of string");
213+
elog(ERROR,"Unexpected end of string");
214214
}
215215
else
216216
{
217-
elog(ERROR,"Syntax error near '%c' atpostion %d",*(state->ptr), (int4) (state->ptr-state->begin));
217+
elog(ERROR,"Syntax error near '%c' atposition %d",*(state->ptr), (int4) (state->ptr-state->begin));
218218
}
219219
}
220220
elseif (st==WVAL)
@@ -247,7 +247,7 @@ parse_hstore(HSParser * state)
247247
}
248248
elseif (!isspace((unsignedchar)*(state->ptr)))
249249
{
250-
elog(ERROR,"Syntax error near '%c' atpostion %d",*(state->ptr), (int4) (state->ptr-state->begin));
250+
elog(ERROR,"Syntax error near '%c' atposition %d",*(state->ptr), (int4) (state->ptr-state->begin));
251251
}
252252
}
253253
else
@@ -271,7 +271,7 @@ comparePairs(const void *a, const void *b)
271271
if (res)
272272
returnres;
273273

274-
/* guarantee thatneddfree willl be later */
274+
/* guarantee thatneedfree will be later */
275275
if (((Pairs*)b)->needfree== ((Pairs*)a)->needfree)
276276
return0;
277277
elseif (((Pairs*)a)->needfree)

‎contrib/hstore/hstore_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ delete(PG_FUNCTION_ARGS)
112112
*ed;
113113

114114
out->len=hs->len;
115-
out->size=hs->size;/*temprorary! */
115+
out->size=hs->size;/*temporary! */
116116

117117
ptrs=STRPTR(hs);
118118
es=ARRPTR(hs);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp