Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5850253

Browse files
committed
struct XmlTableRoutine: use C99 designated initializers
As in c27f862 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.
1 parent c6605c1 commit 5850253

File tree

1 file changed

+8
-8
lines changed
  • src/backend/utils/adt

1 file changed

+8
-8
lines changed

src/backend/utils/adt/xml.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@ static void XmlTableDestroyOpaque(struct TableFuncScanState *state);
213213

214214
const TableFuncRoutine XmlTableRoutine =
215215
{
216-
XmlTableInitOpaque,
217-
XmlTableSetDocument,
218-
XmlTableSetNamespace,
219-
XmlTableSetRowFilter,
220-
XmlTableSetColumnFilter,
221-
XmlTableFetchRow,
222-
XmlTableGetValue,
223-
XmlTableDestroyOpaque
216+
.InitOpaque = XmlTableInitOpaque,
217+
.SetDocument = XmlTableSetDocument,
218+
.SetNamespace = XmlTableSetNamespace,
219+
.SetRowFilter = XmlTableSetRowFilter,
220+
.SetColumnFilter = XmlTableSetColumnFilter,
221+
.FetchRow = XmlTableFetchRow,
222+
.GetValue = XmlTableGetValue,
223+
.DestroyOpaque = XmlTableDestroyOpaque
224224
};
225225

226226
#define NO_XML_SUPPORT() \

0 commit comments

Comments
 (0)