@@ -842,7 +842,7 @@ impl RelationalDB {
842842 let truncates: IntSet < TableId > = tx_data. truncates ( ) . collect ( ) ;
843843
844844 let deletes: Box < _ > = tx_data
845- . durable_deletes ( )
845+ . deletes ( )
846846 . filter ( |( table_id, _) | is_not_ephemeral_table ( table_id) )
847847 . map ( |( table_id, rowdata) | Ops {
848848 table_id : * table_id,
@@ -2420,6 +2420,27 @@ mod tests {
24202420 TableSchema :: from_module_def ( & def, table, ( ) , TableId :: SENTINEL )
24212421 }
24222422
2423+ fn view_module_def ( ) -> ModuleDef {
2424+ let mut builder = RawModuleDefV9Builder :: new ( ) ;
2425+
2426+ let return_type_ref = builder. add_algebraic_type (
2427+ [ ] ,
2428+ "my_view_return_type" ,
2429+ AlgebraicType :: product ( [ ( "b" , AlgebraicType :: U8 ) ] ) ,
2430+ true ,
2431+ ) ;
2432+ builder. add_view (
2433+ "my_view" ,
2434+ 0 ,
2435+ true ,
2436+ false ,
2437+ ProductType :: unit ( ) ,
2438+ AlgebraicType :: array ( AlgebraicType :: Ref ( return_type_ref) ) ,
2439+ ) ;
2440+ let raw = builder. finish ( ) ;
2441+ raw. try_into ( ) . expect ( "table validation failed" )
2442+ }
2443+
24232444 fn table_auto_inc ( ) -> TableSchema {
24242445 table (
24252446 "MyTable" ,
@@ -2525,7 +2546,7 @@ mod tests {
25252546 v : u8 ,
25262547 ) -> ResultTest < ( ) > {
25272548 let to_bsatn = |pv : & ProductValue | {
2528- Bytes :: from ( to_vec ( & AlgebraicValue :: Array ( [ pv. clone ( ) ] . into ( ) ) ) . expect ( "bstan serialization failed" ) )
2549+ Bytes :: from ( bsatn :: to_vec ( & AlgebraicValue :: Array ( [ pv. clone ( ) ] . into ( ) ) ) . expect ( "bstan serialization failed" ) )
25292550 } ;
25302551
25312552 let row_pv = |v : u8 | product ! [ v] ;
@@ -2552,7 +2573,6 @@ mod tests {
25522573 . collect ( )
25532574 }
25542575
2555-
25562576 #[ test]
25572577 fn test_view_tables_are_ephemeral ( ) -> ResultTest < ( ) > {
25582578 let stdb = TestDB :: durable ( ) ?;
0 commit comments