@@ -2575,9 +2575,11 @@ extension SnapshotTests {
25752575 "posts"
25762576 }
25772577 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
2578- if let photo = try decoder.decode(Photo.self) {
2578+ let photo = try decoder.decode(Photo.self)
2579+ let note = try decoder.decode(String.self)
2580+ if let photo {
25792581 self = .photo(photo)
2580- } else if let note = try decoder.decode(String.self) {
2582+ } else if let note {
25812583 self = .note(note)
25822584 } else {
25832585 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
@@ -2682,9 +2684,11 @@ extension SnapshotTests {
26822684 "posts"
26832685 }
26842686 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
2685- if let photo = try decoder.decode(Photo.self) {
2687+ let photo = try decoder.decode(Photo.self)
2688+ let note = try decoder.decode(String.self)
2689+ if let photo {
26862690 self = .photo(photo)
2687- } else if let note = try decoder.decode(String.self) {
2691+ } else if let note {
26882692 self = .note(note)
26892693 } else {
26902694 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
@@ -2785,9 +2789,11 @@ extension SnapshotTests {
27852789 "posts"
27862790 }
27872791 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
2788- if let photo = try decoder.decode(Photo.self) {
2792+ let photo = try decoder.decode(Photo.self)
2793+ let note = try decoder.decode(String.self)
2794+ if let photo {
27892795 self = .photo(photo)
2790- } else if let note = try decoder.decode(String.self) {
2796+ } else if let note {
27912797 self = .note(note)
27922798 } else {
27932799 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
@@ -2873,9 +2879,11 @@ extension SnapshotTests {
28732879 "posts"
28742880 }
28752881 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
2876- if let photo = try decoder.decode(Photo.self) {
2882+ let photo = try decoder.decode(Photo.self)
2883+ let note = try decoder.decode(String.self)
2884+ if let photo {
28772885 self = .photo(photo)
2878- } else if let note = try decoder.decode(String.self) {
2886+ } else if let note {
28792887 self = .note(note)
28802888 } else {
28812889 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
@@ -2947,7 +2955,8 @@ extension SnapshotTests {
29472955 "posts"
29482956 }
29492957 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
2950- if let note = try decoder.decode(String.self) {
2958+ let note = try decoder.decode(String.self)
2959+ if let note {
29512960 self = .note(note)
29522961 } else {
29532962 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
@@ -3019,7 +3028,8 @@ extension SnapshotTests {
30193028 "posts"
30203029 }
30213030 public nonisolated init(decoder: inout some StructuredQueriesCore.QueryDecoder) throws {
3022- if let timestamp = try decoder.decode(Date.UnixTimeRepresentation.self) {
3031+ let timestamp = try decoder.decode(Date.UnixTimeRepresentation.self)
3032+ if let timestamp {
30233033 self = .timestamp(timestamp)
30243034 } else {
30253035 throw StructuredQueriesCore.QueryDecodingError.missingRequiredColumn
0 commit comments