diff options
| author | Peter Eisentraut | 2017-02-21 16:33:07 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2017-02-21 16:59:09 +0000 |
| commit | 38d103763d14baddf3cbfe4b00b501059fc9447f (patch) | |
| tree | a69106fc39af0e181307f40fd3ba43b1930c3fcc /src/pl | |
| parent | 4e5ce3c1aeadf81b504bc9d683b67950bd3f8766 (diff) | |
Make more use of castNode()
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/pl_handler.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pl/plpgsql/src/pl_handler.c b/src/pl/plpgsql/src/pl_handler.c index e15be5d9ac2..92d15810d7f 100644 --- a/src/pl/plpgsql/src/pl_handler.c +++ b/src/pl/plpgsql/src/pl_handler.c @@ -288,7 +288,7 @@ PG_FUNCTION_INFO_V1(plpgsql_inline_handler); Datum plpgsql_inline_handler(PG_FUNCTION_ARGS) { - InlineCodeBlock *codeblock = (InlineCodeBlock *) DatumGetPointer(PG_GETARG_DATUM(0)); + InlineCodeBlock *codeblock = castNode(InlineCodeBlock, DatumGetPointer(PG_GETARG_DATUM(0))); PLpgSQL_function *func; FunctionCallInfoData fake_fcinfo; FmgrInfo flinfo; @@ -296,8 +296,6 @@ plpgsql_inline_handler(PG_FUNCTION_ARGS) Datum retval; int rc; - Assert(IsA(codeblock, InlineCodeBlock)); - /* * Connect to SPI manager */ |
