mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Fix delete statement syntax
This commit is contained in:
parent
70310bfa13
commit
19b9a14ea4
1 changed files with 3 additions and 3 deletions
|
@ -39,19 +39,19 @@ module ActiveRecord
|
|||
|
||||
class PostgreSQLAdapter < AbstractAdapter
|
||||
def delete_table(table_name)
|
||||
execute("DELETE FROM TABLE #{quote_table_name(table_name)};")
|
||||
execute("DELETE FROM #{quote_table_name(table_name)};")
|
||||
end
|
||||
end
|
||||
|
||||
class SQLServerAdapter < AbstractAdapter
|
||||
def delete_table(table_name)
|
||||
execute("DELETE FROM TABLE #{quote_table_name(table_name)};")
|
||||
execute("DELETE FROM #{quote_table_name(table_name)};")
|
||||
end
|
||||
end
|
||||
|
||||
class OracleEnhancedAdapter < AbstractAdapter
|
||||
def delete_table(table_name)
|
||||
execute("DELETE FROM TABLE #{quote_table_name(table_name)}")
|
||||
execute("DELETE FROM #{quote_table_name(table_name)}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue