git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c6605c1)
struct XmlTableRoutine: use C99 designated initializers
2024年1月16日 11:48:30 +0000 (12:48 +0100)
2024年1月16日 11:48:30 +0000 (12:48 +0100)
As in c27f8621eed et al.

Not as critical as other cases we've handled, but I figure if we're
going to add JsonbTableRoutine using TableFuncRoutine, this makes it
easier to jump around the code.


diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c
index 191dd2d1e2ba481ff8f3937ada59995966d67366..f869c680afda645fac9aea5a89843ff515b16061 100644 (file)
--- a/src/backend/utils/adt/xml.c
+++ b/src/backend/utils/adt/xml.c
@@ -213,14 +213,14 @@ static void XmlTableDestroyOpaque(struct TableFuncScanState *state);
const TableFuncRoutine XmlTableRoutine =
{
- XmlTableInitOpaque,
- XmlTableSetDocument,
- XmlTableSetNamespace,
- XmlTableSetRowFilter,
- XmlTableSetColumnFilter,
- XmlTableFetchRow,
- XmlTableGetValue,
- XmlTableDestroyOpaque
+ .InitOpaque = XmlTableInitOpaque,
+ .SetDocument = XmlTableSetDocument,
+ .SetNamespace = XmlTableSetNamespace,
+ .SetRowFilter = XmlTableSetRowFilter,
+ .SetColumnFilter = XmlTableSetColumnFilter,
+ .FetchRow = XmlTableFetchRow,
+ .GetValue = XmlTableGetValue,
+ .DestroyOpaque = XmlTableDestroyOpaque
};
#define NO_XML_SUPPORT() \
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /