Skip Menu |

This queue is for tickets about the DBD-Mock CPAN distribution.

Report information
The Basics
Id: 123577
Status: resolved
Priority: 0/
Queue: DBD-Mock

People
Owner: Nobody in particular
Requestors: WILLIAMT [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Bug?
Is this a bug to have to specify the fields in the results or standard procedure? $dbh->{mock_add_resultset} = { sql => 'SELECT transaction_id, user, routing_number, bank_account, account_type, last4, customer_name, friendly_name, date_created, date_modified FROM temp_ach WHERE transaction_id = ?', results => [ [ 'transaction_id', 'user', 'routing_number', 'bank_account', 'account_type', 'last4', 'customer_name', 'friendly_name', 'date_created', 'date_modified' ], ['9999', 'jdoe', '123456789', '12345', 'Checking', '1000', 'John Doe', 'my account', '2017-01-01', '2017-01-01']], };
On Thu Nov 09 15:06:54 2017, WILLIAMT wrote: Show quoted text
> Is this a bug to have to specify the fields in the results or standard > procedure? > > $dbh->{mock_add_resultset} = { > sql => 'SELECT transaction_id, user, routing_number, bank_account, > account_type, > last4, customer_name, friendly_name, date_created, date_modified > FROM temp_ach WHERE transaction_id = ?', > results => [ > [ 'transaction_id', 'user', 'routing_number', 'bank_account', > 'account_type', > 'last4', 'customer_name', 'friendly_name', 'date_created', > 'date_modified' > ], > ['9999', 'jdoe', '123456789', '12345', 'Checking', > '1000', 'John Doe', 'my account', '2017-01-01', '2017-01-01']], > > };
It's standard procedure. Although it's not documented, you're supposed to conclude that from the examples for mock_add_resultset.