@@ -685,19 +685,31 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
685685 Statement :: ShowTables {
686686 extended,
687687 full,
688- db_name,
689- filter,
688+ terse : _, // TODO throw errors for unsupported options
689+ history : _,
690+ external : _,
691+ show_options : _,
692+ //db_name,
693+ //filter,
690694 // SHOW TABLES IN/FROM are equivalent, this field specifies which the user
691695 // specified, but it doesn't affect the plan so ignore the field
692- clause : _,
693- } => self . show_tables_to_plan ( extended, full, db_name, filter) ,
696+ //clause: _,
697+ } =>
698+ {
699+ todo ! ( "Update show tables/ fix for new syntax" ) ;
700+ // self.show_tables_to_plan(extended, full, db_name, filter)
701+ } ,
694702
695703 Statement :: ShowColumns {
696704 extended,
697705 full,
698- table_name,
699- filter,
700- } => self . show_columns_to_plan ( extended, full, table_name, filter) ,
706+ //table_name,
707+ //filter,
708+ show_options : _,
709+ } => {
710+ todo ! ( "Update show columns / fix for new syntax" ) ;
711+ //self.show_columns_to_plan(extended, full, table_name, filter)
712+ } ,
701713
702714 Statement :: Insert ( Insert {
703715 or,
@@ -766,10 +778,14 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
766778 from,
767779 selection,
768780 returning,
781+ or,
769782 } => {
770783 if returning. is_some ( ) {
771784 plan_err ! ( "Update-returning clause not yet supported" ) ?;
772785 }
786+ if or. is_some ( ) {
787+ plan_err ! ( "ON conflict not supported" ) ?;
788+ }
773789 self . update_to_plan ( table, assignments, from, selection)
774790 }
775791
0 commit comments