Skip to content

Audit Unicode handling of string filters with special characters (Ω, ⚡, emoji, etc.) for all JDBC drivers (MSSQL, Postgres, MySQL, Oracle, DB2). #883

@github-actions

Description

@github-actions

default: treat as escaped string


olake/pkg/jdbc/jdbc.go

Lines 1186 to 1191 in 8208b6b

// TODO: Audit Unicode handling of string filters with special characters (Ω, ⚡, emoji, etc.) for all JDBC drivers (MSSQL, Postgres, MySQL, Oracle, DB2).
// default: treat as escaped string
escaped := strings.ReplaceAll(v, "'", "''")
valueSQL = fmt.Sprintf("'%s'", escaped)
// Driver-specific timestamp handling for ISO 8601 / RFC3339 strings.
isISO8601 := strings.Contains(v, "T") && (strings.Contains(v, "Z") || strings.Contains(v, "+") || (strings.Contains(v, "-") && len(v) > 19))


This issue was generated by todo-issue based on a TODO comment in 8208b6b. It's been assigned to @vikaxsh because they committed the code.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions