We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5973d9 commit 461591eCopy full SHA for 461591e
1 file changed
sqlglot/parser.py
@@ -2901,12 +2901,11 @@ def _parse_settings_property(self) -> exp.SettingsProperty:
2901
)
2902
2903
def _parse_called_on_null_input_property(self) -> exp.CalledOnNullInputProperty | None:
2904
- index = self._index
2905
- if self._match_text_seq("ON", "NULL", "INPUT"):
2906
- return self.expression(exp.CalledOnNullInputProperty())
+ if not self._match_text_seq("ON", "NULL", "INPUT"):
+ self._retreat(self._index - 1)
+ return None
2907
2908
- self._retreat(index - 1)
2909
- return None
+ return self.expression(exp.CalledOnNullInputProperty())
2910
2911
def _parse_volatile_property(self) -> exp.VolatileProperty | exp.StabilityProperty:
2912
if self._index >= 2:
0 commit comments