Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In the above code i get the error message "need two database handles to compare"#!/usr/bin/perl use strict; use warnings; use DBD::SQLite; use DBI ; use DBIx::Compare; use DBIx::Compare::SQLite; my $db1="xyz1.dat"; my $dbh1=DBI->connect("DBI:SQLite:[dbname]=$db1","",""); my $db2="xyz2.dat"; my $dbh2=DBI->connect("DBI:SQLite:[dbname]=$db2","",""); my $oDB_Comparison=db_comparison->new($dbh1,$dbh2); $oDB_Comparison->compare; $oDB_Comparison->deep_compare;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Even though there are two separate database handles error shows need two separate database handles to compare
by mje (Curate) on Mar 09, 2011 at 10:40 UTC | |
by wallisds (Beadle) on Mar 09, 2011 at 15:40 UTC |