2 |
## $Id$ |
## $Id$ |
3 |
## -------------------------------------------------------------------------------- |
## -------------------------------------------------------------------------------- |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.8 2002/12/12 02:48:58 joko |
6 |
|
## + played with fixing disconnectTarget |
7 |
|
## |
8 |
## Revision 1.7 2002/12/01 22:13:17 joko |
## Revision 1.7 2002/12/01 22:13:17 joko |
9 |
## + minor bugfix? |
## + minor bugfix? |
10 |
## |
## |
50 |
|
|
51 |
use libp qw( croak ); |
use libp qw( croak ); |
52 |
use DBI; |
use DBI; |
53 |
|
use Data::Dumper; |
54 |
|
|
55 |
use constant SQL_INSERT => 10; |
use constant SQL_INSERT => 10; |
56 |
use constant SQL_UPDATE => 11; |
use constant SQL_UPDATE => 11; |
164 |
|
|
165 |
sub disconnectTarget { |
sub disconnectTarget { |
166 |
#my $dbmeta = shift; |
#my $dbmeta = shift; |
167 |
|
#print "disc\n"; |
168 |
#croak "please supply a \"dbmeta\"-hash" if (!$dbmeta); |
#croak "please supply a \"dbmeta\"-hash" if (!$dbmeta); |
169 |
#$dbmeta = patch_dbmeta($dbmeta); |
#$dbmeta = patch_dbmeta($dbmeta); |
170 |
#$dbmeta->{dbh} && $dbmeta->{dbh}->disconnect(); |
#$dbmeta->{dbh} && $dbmeta->{dbh}->disconnect(); |
171 |
my $dbmeta = $dbmeta_ref_cache; |
my $dbmeta = $dbmeta_ref_cache; |
172 |
$dbmeta->{dbh} && $dbmeta->{dbh}->disconnect(); |
#print Dumper($dbmeta); |
173 |
|
#$dbmeta->{dbh} && $dbmeta->{dbh}->disconnect(); |
174 |
|
$dbmeta->{dbh}->disconnect(); |
175 |
undef($dbmeta->{dbh}); |
undef($dbmeta->{dbh}); |
176 |
#undef($dbmeta_ref_cache); |
undef($dbmeta); |
177 |
|
undef($dbmeta_ref_cache); |
178 |
} |
} |
179 |
|
|
180 |
sub sendSql { |
sub sendSql { |