From b66a2b1641906d7f7e5c964acb0417347d567e37 Mon Sep 17 00:00:00 2001 From: Paul Driver Date: Mon, 9 Mar 2009 14:31:35 +0000 Subject: [PATCH] Documentation bug in buildArrayRefOfHashRefs --- lib/WebGUI/SQL.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 8fd669ca7..372c1b31b 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -220,12 +220,13 @@ sub buildHashRef { =head2 buildArrayRefOfHashRefs ( sql ) -Builds an array reference of hash references of data -from a series of rows. Useful for returning many rows at once. +Builds an array reference of hash references of data from a series of rows. +Useful for returning many rows at once. Each element of the returned array +reference is a hash of column names to column values. =head3 sql -An SQL query. The query must select at least two columns of data, the first being the key for the hash, the second being the value. If the query selects more than two columns, then the last column will be the value and the remaining columns will be joined together by a colon ":" to form a complex key. If the query selects only one column, then the key and the value will be the same. +An SQL query. =head3 params