You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#{sql.dup.insertsql.index(/ (DEFAULT )?VALUES/i)," OUTPUT #{pk_and_types.map{ |pk_and_type| "INSERTED.#{pk_and_type[:quoted]}"}.join(", ")} INTO @ssaIdInsertTable"}
291
+
SELECT #{pk_and_types.map{|pk_and_type| "CAST(#{pk_and_type[:quoted]} AS #{pk_and_type[:id_sql_type]}) #{pk_and_type[:quoted]}"}.join(", ")} FROM @ssaIdInsertTable
Copy file name to clipboardExpand all lines: test/schema/sqlserver_specific_schema.rb
+17
Original file line number
Diff line number
Diff line change
@@ -249,6 +249,23 @@
249
249
SELECT pk_col_one AS id_source, event_name FROM INSERTED
250
250
SQL
251
251
252
+
execute"IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'sst_table_with_composite_pk_trigger_with_different_data_type') DROP TABLE sst_table_with_composite_pk_trigger_with_different_data_type"
0 commit comments