Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[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: