Thread quoting problem (6 answers)
Opened by Froschpopo at 2007-11-23 06:34

renee
 2007-11-23 14:55
#102915 #102915
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Welche Version von SQL::Abstract verwendest Du?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

use strict;
use warnings;
use lib qw(./lib);
use SQL::Abstract;

my $sql = SQL::Abstract->new;

print "VERSION: ", SQL::Abstract->VERSION(), "\n";

my %where = (
  't.col1' => \'= t.col2',
);
my ($stmt) = $sql->where( \%where);
print $stmt,"\n";


Code: (dl )
1
2
3
C:\>abstract_test.pl
VERSION: 1.22
WHERE ( t.col1 = t.col2 )


Der Code ist also (ausnahmsweise mal) getestet...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread quoting problem