
CVS log for interchange/code/Filter/dbi_quote.filter
Up to [Local Repository] / interchange / code / Filter
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 00:20:03 2007 UTC (21 months, 1 week ago) by pajamian
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_3
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +8 -3
lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Mar 30 23:40:44 2007 UTC (21 months, 1 week ago) by pajamian
Branches: MAIN
CVS tags: STABLE_5_6-root,
STABLE_5_6-branch,
REL_5_7_1,
REL_5_6_1,
REL_5_5_3,
REL_5_5_2,
REL_5_5_1,
HEAD,
DEB_5_6_1_2,
DEB_5_5_1_1_1,
DEB_5_5_1
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -3
lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later". Update copyrights.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Nov 10 02:36:48 2005 UTC (3 years, 1 month ago) by jon
Branches: MAIN
CVS tags: STABLE_5_4-root,
REL_5_4_2,
REL_5_4_1,
REL_5_4_0,
REL_5_3_3,
REL_5_3_2
Branch point for: STABLE_5_4-branch
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -7
lines
Make code more readable, as suggested by Stefan.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Oct 4 19:31:27 2005 UTC (3 years, 3 months ago) by jon
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1
Add dbi_quote filter, which uses DBI's (or the DBD's, if it overrides)
quote method to make a string safe to use in SQL. It takes into account
any database-specific quoting needs (such as \ for PostgreSQL or MySQL,
truncating at the first \0 for PostgreSQL, turning a newline into a
literal two-character '\n' for MySQL, etc.).
The database handle used is that of the first ProductFiles database,
unless another is specified with e.g.:
[filter dbi_quote.inventory]some string or other[/filter]
Which is likely to result in:
'some string or other'
Note the containing quotes, which is different than Interchange's native
"sql" filter. See also the DBI man page details about the quote method.
Since this uses database handles, Safe must be considered if it's being
used via the $Tag object in a Perl block.
Interchange CVSweb <info@icdevgroup.org>