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

Commit40b1db5

Browse files
author
Marina Polyakova
committed
Fix build due to new checks in PostgreSQL 16
The macro PG_DETOAST_DATUM returns a pointer to a varlena structure and theinput to the function DatumGetPointer must be of type Datum (see the commitc8b2ef05f481ef06326d7b9f3eb14b303f215c7e in PostgreSQL 16). So use a simple castinstead of the function DatumGetPointer.
1 parentcdcfd38 commit40b1db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎jsquery.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ typedef struct
2626
int32vl_len_;/* varlena header (do not touch directly!) */
2727
}JsQuery;
2828

29-
#defineDatumGetJsQueryP(d)((JsQuery*)DatumGetPointer(PG_DETOAST_DATUM(d)))
29+
#defineDatumGetJsQueryP(d)((JsQuery*)PG_DETOAST_DATUM(d))
3030
#definePG_GETARG_JSQUERY(x)DatumGetJsQueryP(PG_GETARG_DATUM(x))
3131
#definePG_RETURN_JSQUERY(p)PG_RETURN_POINTER(p)
3232

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp