4271bbb738
This update the way Member is added and editing so that import and Edition could be best automatized GetMember evolves and allow ppl to serach on a hash of data Adding SQLHelper A new package to deal with INSERT UPDATE and SELECT Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
20 lines
571 B
Perl
Executable file
20 lines
571 B
Perl
Executable file
#!/usr/bin/perl
|
|
#
|
|
# This Koha test module is a stub!
|
|
# Add more tests here!!!
|
|
|
|
use strict;
|
|
use warnings;
|
|
use Data::Dumper;
|
|
|
|
use C4::SQLHelper qw(:all);
|
|
|
|
use Test::More tests => 3;
|
|
|
|
BEGIN {
|
|
use_ok('C4::SQLHelper');
|
|
}
|
|
|
|
my $borrid=InsertInTable("borrowers",{firstname=>"Jean",surname=>"Valjean",city=>" ",zipcode=>" ",email=>"email",categorycode=>"EL"});
|
|
my $status=UpdateInTable("borrowers",{borrowernumber=>$borrid,firstname=>"Jean",surname=>"Valjean",city=>"ma6tVaCracker ",zipcode=>" ",email=>"email"});
|
|
my $borrowers=SearchInTable("borrowers",{firstname=>"Jean"});
|