@@ -943,7 +943,6 @@ def create_table_sql(
943943 ), "defaults set {} includes items not in columns {}" .format (
944944 repr (set (defaults )), repr (set (columns .keys ()))
945945 )
946- validate_column_names (columns .keys ())
947946 column_items = list (columns .items ())
948947 if column_order is not None :
949948
@@ -2915,7 +2914,6 @@ def update(
29152914 sets = []
29162915 wheres = []
29172916 pks = self .pks
2918- validate_column_names (updates .keys ())
29192917 for key , value in updates .items ():
29202918 sets .append (
29212919 "{} = {}" .format (quote_identifier (key ), conversions .get (key , "?" ))
@@ -3505,9 +3503,6 @@ def insert_all(
35053503 else :
35063504 # Dict mode: traditional behavior
35073505 records_iter = itertools .chain ([first_record ], records_iter )
3508- records_iter = fix_square_braces (
3509- cast (Iterable [Dict [str , Any ]], records_iter )
3510- )
35113506 try :
35123507 first_record = next (records_iter )
35133508 except StopIteration :
@@ -4149,20 +4144,6 @@ def resolve_extracts(
41494144 return extracts
41504145
41514146
4152- def validate_column_names (columns ):
4153- # Validate no columns contain problematic characters
4154- # With double-quote identifier escaping, embedded quotes are handled
4155- # by the quote_identifier function, so no validation is needed
4156- pass
4157-
4158-
4159- def fix_square_braces (records : Iterable [Dict [str , Any ]]):
4160- # Legacy function name kept for backward compatibility
4161- # With double-quote identifier escaping, embedded quotes are handled
4162- # by the quote_identifier function, so records pass through unchanged
4163- yield from records
4164-
4165-
41664147def _decode_default_value (value ):
41674148 if value .startswith ("'" ) and value .endswith ("'" ):
41684149 # It's a string
0 commit comments