add support for bool type

This commit is contained in:
jnesss
2025-05-09 09:01:24 -07:00
parent c0dd79adc2
commit 02d141e3ce

View File

@@ -243,6 +243,13 @@ func buildArgs(args []driver.Value) ([]limboValue, func(), error) {
case float64:
limboVal.Type = realVal
limboVal.Value = *(*[8]byte)(unsafe.Pointer(&val))
case bool:
limboVal.Type = intVal
boolAsInt := int64(0)
if val {
boolAsInt = 1
}
limboVal.Value = *(*[8]byte)(unsafe.Pointer(&boolAsInt))
case string:
limboVal.Type = textVal
cstr := CString(val)