From 2b1f6ef77f0ef347897a060cfe94bbff2e3f6c76 Mon Sep 17 00:00:00 2001 From: jeff Date: Tue, 25 Aug 2009 17:03:42 +0000 Subject: [PATCH] support listref to qsearch as UNION --- FS/FS/Record.pm | 216 +++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 134 insertions(+), 82 deletions(-) diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 58b2555f0..f17b24036 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -244,6 +244,9 @@ fine in the common case where there are only two parameters: my @records = qsearch( 'table', { 'field' => 'value' } ); +Also possible is an experimental LISTREF of PARAMS_HASHREFs for a UNION of +the individual PARAMS_HASHREF queries + ###oops, argh, FS::Record::new only lets us create database fields. #Normal behaviour if SELECT is not specified is `*', as in #C