Fix the Shop/Transaction tests for JSON.

Convert Shop/Transaction and Shop/Tax to use buildDataTableStructure.
Change SQL.pm to return a hash instead of a hashref for buildDataTableStructure.
This commit is contained in:
Colin Kuskie 2008-03-19 04:45:02 +00:00
parent 4db53bb8ed
commit 875187ee74
4 changed files with 11 additions and 33 deletions

View file

@ -241,7 +241,7 @@ Builds a data structure that can be converted to JSON and sent
to a YUI Data Table. This is basically a hash of information about
the results, with one of the keys being an array ref of hashrefs. It also
calculates the total records that could have been matched without a limit
statement, as well as how many were actually matched.
statement, as well as how many were actually matched. It returns a hash.
=head3 sql
@ -270,7 +270,7 @@ sub buildDataTableStructure {
$hash{totalRecords} = $self->quickScalar('select found_rows()') + 0; ##Convert to numeric
$hash{recordsReturned} = $sth->rows();
$sth->finish;
return \%hash;
return %hash;
}
#-------------------------------------------------------------------