@@ -143,7 +143,7 @@ get_val(HSParser * state, bool ignoreeq, bool *escaped)
143
143
st = GV_INESCVAL ;
144
144
}
145
145
else
146
- elog (ERROR , "Unknown state %d at postion line %d in file '%s'" , st , __LINE__ , __FILE__ );
146
+ elog (ERROR , "Unknown state %d at position line %d in file '%s'" , st , __LINE__ , __FILE__ );
147
147
148
148
state -> ptr ++ ;
149
149
}
@@ -195,11 +195,11 @@ parse_hstore(HSParser * state)
195
195
}
196
196
else if (* (state -> ptr ) == '\0' )
197
197
{
198
- elog (ERROR , "Unexpectd end of string" );
198
+ elog (ERROR , "Unexpected end of string" );
199
199
}
200
200
else if (!isspace ((unsigned char ) * (state -> ptr )))
201
201
{
202
- elog (ERROR , "Syntax error near '%c' at postion %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
202
+ elog (ERROR , "Syntax error near '%c' at position %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
203
203
}
204
204
}
205
205
else if (st == WGT )
@@ -210,11 +210,11 @@ parse_hstore(HSParser * state)
210
210
}
211
211
else if (* (state -> ptr ) == '\0' )
212
212
{
213
- elog (ERROR , "Unexpectd end of string" );
213
+ elog (ERROR , "Unexpected end of string" );
214
214
}
215
215
else
216
216
{
217
- elog (ERROR , "Syntax error near '%c' at postion %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
217
+ elog (ERROR , "Syntax error near '%c' at position %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
218
218
}
219
219
}
220
220
else if (st == WVAL )
@@ -247,7 +247,7 @@ parse_hstore(HSParser * state)
247
247
}
248
248
else if (!isspace ((unsigned char ) * (state -> ptr )))
249
249
{
250
- elog (ERROR , "Syntax error near '%c' at postion %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
250
+ elog (ERROR , "Syntax error near '%c' at position %d" , * (state -> ptr ), (int4 ) (state -> ptr - state -> begin ));
251
251
}
252
252
}
253
253
else
@@ -271,7 +271,7 @@ comparePairs(const void *a, const void *b)
271
271
if (res )
272
272
return res ;
273
273
274
- /* guarantee that neddfree willl be later */
274
+ /* guarantee that needfree will be later */
275
275
if (((Pairs * ) b )-> needfree == ((Pairs * ) a )-> needfree )
276
276
return 0 ;
277
277
else if (((Pairs * ) a )-> needfree )
0 commit comments