You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finalStringquery = "element test { (map {})[2] }";
131
121
finalStringerror = "err:XQTY0105 Function types are not allowed in element content. Got map(*) [source: element test { (map {})[2] }]";
132
122
assertCompilationError(query, error);
133
123
}
134
124
135
-
/**
136
-
* -- no error is thrown at compile time
137
-
* TODO: add (sub-expression) location
138
-
*/
125
+
// TODO: add (sub-expression) location
126
+
// TODO: this could throw at compile time
139
127
@Test
140
128
publicvoidArrayOfMaps() throwsXMLDBException {
141
129
finalStringquery = "element test { [map {}] }";
142
130
finalStringerror = "An exception occurred during query execution: err:XQTY0105 Function types are not allowed in element content. Got map(*) [source: element test { [map{}] }]";
143
131
assertCompilationError(query, error);
144
132
};
145
133
146
-
/**
147
-
* This could throw at compile time, but does not
148
-
* TODO: add (sub-expression) location
149
-
*/
134
+
// TODO: add (sub-expression) location
135
+
// TODO: This should throw at compile time, but does not
0 commit comments