File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ def drop_agent(self, p):
199199 return DropAgent (name = p .identifier , if_exists = p .if_exists_or_empty )
200200
201201 @_ ('UPDATE AGENT identifier SET kw_parameter_list' )
202+ @_ ('ALTER AGENT identifier USING kw_parameter_list' )
202203 def update_agent (self , p ):
203204 return UpdateAgent (name = p .identifier , updated_params = p .kw_parameter_list )
204205
Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ def test_update_agent(self):
4444 assert str (ast ) == str (expected_ast )
4545 assert ast .to_tree () == expected_ast .to_tree ()
4646
47+ sql = '''
48+ alter agent my_agent
49+ USING
50+ model = 'new_model',
51+ skills = ['new_skill1', 'new_skill2']
52+ '''
53+ ast = parse_sql (sql )
54+
4755 # Parse again after rendering to catch problems with rendering.
4856 ast = parse_sql (str (ast ))
4957 assert str (ast ) == str (expected_ast )
You can’t perform that action at this time.
0 commit comments