mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Error message editing in contrib (mostly by Joe Conway --- thanks Joe!)
This commit is contained in:
@ -26,7 +26,9 @@ dex_init(PG_FUNCTION_ARGS) {
|
||||
DictExample *d = (DictExample*)malloc( sizeof(DictExample) );
|
||||
|
||||
if ( !d )
|
||||
elog(ERROR, "No memory");
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of memory")));
|
||||
memset(d,0,sizeof(DictExample));
|
||||
|
||||
d->stoplist.wordop=lowerstr;
|
||||
|
Reference in New Issue
Block a user