301888 {
301890
301891 if (parameter == "nulls_first" || parameter == "nulls first" || parameter == "null first" || parameter == "first") {
301892 input = Value("NULLS_FIRST");
301893 } else if (parameter == "nulls_last" || parameter == "nulls last" || parameter == "null last" ||
301894 parameter == "last") {
301895 input = Value("NULLS_LAST");
301896 } else if (parameter == "nulls_first_on_asc_last_on_desc" || parameter == "sqlite" || parameter == "mysql") {
301897 input = Value("NULLS_FIRST_ON_ASC_LAST_ON_DESC");
301898 } else if (parameter == "nulls_last_on_asc_first_on_desc" || parameter == "postgres") {
301899 input = Value("NULLS_LAST_ON_ASC_FIRST_ON_DESC");
301900 } else {
301901 throw ParserException("Unrecognized parameter for option NULL_ORDER \"%s\", expected either NULLS FIRST, NULLS "
301902 "LAST, SQLite, MySQL or Postgres",
301903 parameter);
301904 }
301905}
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318