Scott Steinbeck
06/20/2022, 8:08 PMorg.postgresql.util.PGobject
which then needs to have .toString()
called on them to actually print the value. (eg. json
jsonb
and recently i found citext
(case insensitive text) This seems like an additional step that could be handled before the query is returned. Is it possible to convert this somewhere before the query is returned?bdw429s
06/20/2022, 10:44 PMbdw429s
06/20/2022, 10:45 PMbdw429s
06/20/2022, 10:45 PMjava.util.UUID
to a string when comparing it, whereas Lucee will not.Scott Steinbeck
06/20/2022, 10:45 PMbdw429s
06/20/2022, 10:46 PMbdw429s
06/20/2022, 10:46 PMbdw429s
06/20/2022, 10:47 PMbdw429s
06/20/2022, 10:47 PMtoString()
it may be destructive to have Lucee just turn them into a string automatically.Scott Steinbeck
06/20/2022, 10:49 PMbdw429s
06/20/2022, 10:50 PMbdw429s
06/20/2022, 10:50 PMbdw429s
06/20/2022, 10:50 PMbdw429s
06/20/2022, 10:50 PMScott Steinbeck
06/20/2022, 10:51 PMbdw429s
06/21/2022, 2:58 AMmyQry.someGUID == 'xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx'
in Lucee, but you could in Adobe CF.bdw429s
06/21/2022, 3:01 AMjava.util.UUID
instances in a JDBC resultset coming back and convert them into a string while building the query. After submitting the pull, I did some additional testing on Adobe CF only to realize I had misinterpreted how Adobe does it-- they don't swap out the UUID instance in the result set for a string at the point where the query object is built-- instead the leave the raw UUID instance in the query but
• make CFDump "smart" enough to always render it as a string when dumping it
• Enhanced their auto-casting to automatically convert the UUID instance into a string when doing a string comparison on it or outputting it as a string.
• This means you can still call methods from the underlying UUID class instance however on the column value because they don't convert it up front-- only at the point of use.bdw429s
06/21/2022, 3:02 AMbdw429s
06/21/2022, 3:03 AMbdw429s
06/21/2022, 3:03 AMbdw429s
06/21/2022, 3:03 AMbdw429s
06/21/2022, 3:04 AMbdw429s
06/21/2022, 3:05 AMScott Steinbeck
06/21/2022, 4:27 PMbdw429s
06/21/2022, 4:29 PMbdw429s
06/21/2022, 4:30 PMbdw429s
06/21/2022, 4:30 PMit got merged so thats a plus.Not, if it's not the the fix we wanted/needed 😕
Scott Steinbeck
06/21/2022, 4:31 PM.toString()
and being done with itryanguill
column::text
ryanguill
Scott Steinbeck
07/18/2022, 11:36 PM