[Jifty-commit] r1487 - in Jifty-DBI/trunk: lib/Jifty/DBI
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Thu Jul 6 00:29:31 EDT 2006
Author: alexmv
Date: Thu Jul 6 00:29:30 2006
New Revision: 1487
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
Log:
r14988 at zoq-fot-pik: chmrr | 2006-07-06 00:29:20 -0400
* Make _open_paren and _close_paren into public methods open_paren and close_paren
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Collection.pm Thu Jul 6 00:29:30 2006
@@ -146,7 +146,6 @@
subclauses
restrictions
_open_parens
- _close_parens
);
$self->implicit_clauses();
@@ -876,13 +875,33 @@
}
}
-sub _open_paren {
+=head2 open_paren CLAUSE
+
+Places an open paren at the current location in the given C<CLAUSE>.
+Note that this can be used for Deep Magic, and has a high likelyhood
+of allowing you to construct malformed SQL queries. Its interface
+will probably change in the near future, but its presence allows for
+arbitrarily complex queries.
+
+=cut
+
+sub open_paren {
my ( $self, $clause ) = @_;
$self->{_open_parens}{$clause}++;
}
+=head2 close_paren CLAUSE
+
+Places a close paren at the current location in the given C<CLAUSE>.
+Note that this can be used for Deep Magic, and has a high likelyhood
+of allowing you to construct malformed SQL queries. Its interface
+will probably change in the near future, but its presence allows for
+arbitrarily complex queries.
+
+=cut
+
# Immediate Action
-sub _close_paren {
+sub close_paren {
my ( $self, $clause ) = @_;
my $restriction = \$self->{'restrictions'}{"$clause"};
if ( !$$restriction ) {
More information about the Jifty-commit
mailing list