[REBOL] Re: date! and SQL..
From: dockimbel:free at: 12-Jul-2001 1:13
Hi Chris,
Yes, this is currently the correct way. Unfortunately, i didn't have time to
include all the types conversion in the last release. Next release (next week...)
will handle all the conversions for you.
In the meantime, you can use external functions to convert values or directly
patch the driver source in the 'to-sql function :
to-sql: func [value][
switch/default mold type? value [
"none!" ["NULL"]
; "date!" [] ; <= add you own code here
; "time!" []
; "money!" []
"string!" [join "'" [sql-escape value "'"]]
][value]
]
Regards,
DocKimbel.
Chris wrote: