Commit graph

125 commits

Author SHA1 Message Date
Yung Han Khoe
2987ed44bc Changing some SQL methods to quote table names 2009-11-16 12:11:45 +01:00
Graham Knop
626e3abf96 make buildHashRef faster 2009-09-16 18:28:32 -05:00
Colin Kuskie
1665af184d Prevent closing dbh handles twice. 2009-04-10 16:31:54 +00:00
Paul Driver
b66a2b1641 Documentation bug in buildArrayRefOfHashRefs 2009-03-09 14:31:35 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
b6cfd088c7 buildArray, buildArrayRef should only use the first column of results 2008-11-24 16:23:00 +00:00
Graham Knop
848cf3b6db make WebGUI::SQL a little faster 2008-11-24 04:01:01 +00:00
Graham Knop
1cf8d00d4a document return values of WebGUI::SQL->write and WebGUI::SQL::ResultSet->execute 2008-11-04 22:46:49 +00:00
Graham Knop
0ec07bc967 get setRow to work with field names with non-word characters 2008-11-04 22:46:44 +00:00
Graham Knop
fee64b013f better error message for database connection failure 2008-06-26 20:51:04 +00:00
JT Smith
5fb4807edc merging commerce branch back into head 2008-04-20 18:08:26 +00:00
JT Smith
23ea56bbe6 Added the viewcart macro.
Lookup registrant now works.
Fixed some bugs.
2008-04-11 22:00:17 +00:00
JT Smith
ac3c7d18b9 fixed a limitation with buildSearchQuery in SQL
started working on registrant search in EMS
2008-04-04 18:37:53 +00:00
Colin Kuskie
3f5d947282 Get rid of buildDataTableStructure. 2008-03-24 16:13:24 +00:00
Colin Kuskie
f3fd67378f Add a SQL method for building searchable queries.
Add tests for that method.
Convert Shop/Tax and Shop/Transaction to use that for their JSON generating methods.
2008-03-19 19:35:43 +00:00
Colin Kuskie
875187ee74 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.
2008-03-19 04:45:02 +00:00
Colin Kuskie
4db53bb8ed Reformat the JSON test for Shop/Tax.t
Add JSON tets to Shop/Transaction.t
Reindent several methods in SQL/ResultSet.pm
add a method for returning a YUI Data Table structure to SQL.pm
2008-03-19 04:33:24 +00:00
Colin Kuskie
c4bd646ca3 More POD for SQL, read method 2008-03-10 04:23:36 +00:00
Graham Knop
d9d524a2fe Use UTF8 for database connection when connecting to MySQL 2008-03-07 17:45:19 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Graham Knop
15b22ab4ca Merged revisions 5264 via svnmerge from
https://svn.webgui.org/plainblack/branch/WebGUI_7.4

........
  r5264 | graham | 2008-01-09 10:59:46 -0600 (Wed, 09 Jan 2008) | 1 line
  
  reverting UTF-8 change
........
2008-01-09 17:16:20 +00:00
Graham Knop
71192f3c8b Merged revisions 5259 via svnmerge from
https://svn.webgui.org/plainblack/branch/WebGUI_7.4

........
  r5259 | graham | 2008-01-09 06:35:57 -0600 (Wed, 09 Jan 2008) | 1 line
  
  Use UTF8 for database connection when connecting to MySQL
........
2008-01-09 12:40:54 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Graham Knop
6c5453cf9b i'm dumb 2007-10-05 16:21:13 +00:00
Colin Kuskie
a9f45865e6 Add optional database connection parameters to the DatabaseLink. This
replaces the old, automatic setting of LongReadLen and LongTruncOk in
SQL.pm, and is much more flexible.
Fix some documentation with allowMacroAccess in the DatabaseLink.
Additional tests for DatabaseLink.
Document the new parameter behavior in the changelog and gotchas file.
2007-07-25 23:46:20 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
James Tolley
c09b2cae1b EMS import/export, Form::*::getValueFromPost(alt_values), and tests 2007-05-29 23:39:24 +00:00
Nik Ogura
7329f102bd Fixed typos in the POD 2007-03-25 19:49:38 +00:00
JT Smith
172985e2a0 - fix: 7.4 Editing SQL Form seems to break site ...? 2007-03-09 05:38:44 +00:00
Colin Kuskie
1412f023f1 Fixed a bug in WebGUI::User::profileField, where the check for whether or not
a profile field existed in the db always passed because it used quickArray in
scalar context.  Since quickArray always returns 1 element, this was always true
and it never returned undef like it was supposed to.

To fix this, I added a new method called quickScalar that returns the first column
from the row as a scalar.  It has a basic test in SQL.t.

Then there's the new test in User.t for coverage that exposed this problem, and
I also removed a whole slew of duplicate tests.
2007-03-04 04:18:59 +00:00
Colin Kuskie
fcaf782f5b ODBC dsns need long lengths like Oracle 2007-03-01 23:27:24 +00:00
Colin Kuskie
211e9bd8a7 fix some bad POD in SQL.pm pertaining to how buildHash* works 2007-02-28 21:26:34 +00:00
Drake
b8f173fefe Add progressive tasks to the Task Manager; these are distinct from the
existing timed tasks and milestones in that they have a duration that
increases based on the amount of time tracked for them, and no set
completion time.  Nearby minor fixes.
2006-10-02 22:33:00 +00:00
Drake
1ad3f6e3b3 Make DBI connect errors not infinitely recurse. 2006-09-21 00:25:01 +00:00
Wouter van Oijen
2d9565775f POD fixes and removing debug output 2006-07-11 09:05:22 +00:00
JT Smith
9eee3fb891 clarification 2006-05-16 23:43:10 +00:00
Matthew Wilson
5b80488c5a updating POD 2006-05-12 15:10:33 +00:00
Matthew Wilson
046796c383 probably better order this thing. 2006-05-12 15:07:44 +00:00
Matthew Wilson
1401a22377 new convenience method. 2006-05-12 11:59:58 +00:00
Matthew Wilson
fd32315866 fix 2006-05-07 14:40:07 +00:00
Matthew Wilson
067170b8c9 more consistent indenting and more efficient buildArrayRefOfHashRefs 2006-05-07 14:38:56 +00:00
Matthew Wilson
82403c108c oops. 2006-04-17 08:52:02 +00:00
Matthew Wilson
2b8d4c247b um, weird. 2006-04-17 08:50:18 +00:00
Matthew Wilson
2c60283ba3 first major round of EMS changes. much more to come late tonight. 2006-04-07 00:02:45 +00:00
Colin Kuskie
510c1f5ca5 Modify User.pm and Group.pm to consider external means of defining users,
such as a dbQuery.  This would happened coincidently before, but required
doing a User->isInGroup and only added members who were searched for rather
than all members.
Modify Group.t to test this.
Update POD in SQL.pm.
2006-04-05 18:35:26 +00:00
JT Smith
6171357937 some bug fixes 2006-02-09 20:06:37 +00:00
JT Smith
ec5193e5d3 more workflow stuff 2006-02-09 18:45:14 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
JT Smith
74b01f732e added search to asset manager 2006-01-23 19:56:00 +00:00