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

Commit6e675d2

Browse files
committed
Fix coding error in UTF conversion.
1 parent07be598 commit6e675d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

‎src/pl/tcl/pltcl.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* ENHANCEMENTS, OR MODIFICATIONS.
3232
*
3333
* IDENTIFICATION
34-
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.54 2002/05/2419:58:04 tgl Exp $
34+
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.55 2002/05/2421:04:34 tgl Exp $
3535
*
3636
**********************************************************************/
3737

@@ -594,15 +594,17 @@ pltcl_func_handler(PG_FUNCTION_ARGS)
594594
if (SPI_finish()!=SPI_OK_FINISH)
595595
elog(ERROR,"pltcl: SPI_finish() failed");
596596

597-
UTF_BEGIN;
598597
if (fcinfo->isnull)
599598
retval= (Datum)0;
600599
else
600+
{
601+
UTF_BEGIN;
601602
retval=FunctionCall3(&prodesc->result_in_func,
602603
PointerGetDatum(UTF_U2E(interp->result)),
603604
ObjectIdGetDatum(prodesc->result_in_elem),
604605
Int32GetDatum(-1));
605-
UTF_END;
606+
UTF_END;
607+
}
606608

607609
/************************************************************
608610
* Finally we may restore normal error handling.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp