Help for this page

Select Code to Download


  1. or download this
    print "\nTesting no placeholders, no results $dsn\n";
    my $sth = $dbh->prepare("select 'test' where 1=0");
    ...
    print "\nTesting placeholders with no results $dsn\n";
    my $sthThird = $dbh->prepare("select ? where 1=0");
    print Dumper $dbh->selectall_arrayref($sthThird);
    
  2. or download this
    Testing no placeholders, no results dbi:Sybase:server=xxx.xxx.xxx.xxx
    $VAR1 = [];
    ...
    
    Testing placeholders with no results dbi:Sybase:server=xxx.xxx.xxx.xxx
    +;tdsLevel=CS_TDS_495
    (hang)