• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 30825450288

03 Aug 2026 03:00PM UTC coverage: 60.991% (-19.4%) from 80.366%
30825450288

Pull #1293

github

web-flow
Merge 838eef931 into 1e33d8708
Pull Request #1293: fix: hardening for non-json object reply

3709 of 6900 branches covered (53.75%)

Branch coverage included in aggregate %.

22 of 32 new or added lines in 5 files covered. (68.75%)

2204 existing lines in 109 files now uncovered.

7686 of 11783 relevant lines covered (65.23%)

384.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.33
/src/internal/database/sql.ts
1
const POSTGRES_IDENTIFIER_PATTERN = /^[A-Za-z_][A-Za-z0-9_]*$/
49✔
2

3
export function quoteIdentifier(identifier: string): string {
4
  if (!POSTGRES_IDENTIFIER_PATTERN.test(identifier)) {
20,331!
UNCOV
5
    throw new Error(`Invalid PostgreSQL identifier: ${identifier}`)
×
6
  }
7

8
  return `"${identifier}"`
20,331✔
9
}
10

11
export function quoteQualifiedIdentifier(tableName: string): string {
12
  const [schema, name, ...rest] = tableName.split('.')
21✔
13

14
  if (!schema || !name || rest.length > 0) {
21!
UNCOV
15
    throw new Error(`Invalid PostgreSQL table name: ${tableName}`)
×
16
  }
17

18
  return `${quoteIdentifier(schema)}.${quoteIdentifier(name)}`
21✔
19
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc