in reply to Re: Class::DBI and MySQL ENCODE/DECODE
in thread Class::DBI and MySQL ENCODE/DECODE
Well yes, but ...
SELECT %s
FROM __TABLE__
WHERE __IDENTIFIER__
or
UPDATE __TABLE__
SET %s
WHERE __IDENTIFIER__
One would need to define custom SQL for the fields that need to be encoded or decoded, or else encode or decode everything.
So it seems that the string being passed in must contain the ENCODE/DECODE only for the fields that need it, or else modify the query after it has been built.
What I am trying to identify is where to put it to avoid duplication of code and/or special casing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Class::DBI and MySQL ENCODE/DECODE
by perrin (Chancellor) on Dec 23, 2005 at 04:38 UTC | |
by Anonymous Monk on Dec 23, 2005 at 05:03 UTC | |
by perrin (Chancellor) on Dec 23, 2005 at 18:05 UTC |