← Back to Stormify Documentation

castToTime

fun castToTime(placeholder: String): String

Wraps a bind placeholder with a dialect-specific cast to TIME. Oracle has no native TIME, so it falls back to TO_TIMESTAMP; SQLite and MySQL/MariaDB are passthrough (MySQL prepared-statement CAST(? AS TIME) mis-parses a bound string to 00:00:00 — plain comparison relies on implicit coercion instead); everyone else uses CAST(? AS TIME).