Commit graph

137 commits

Author SHA1 Message Date
Graham Knop
65dfb6e683 Merge branch 'WebGUI8' into psgi 2010-05-10 17:03:17 -05:00
Graham Knop
9c725aa237 fix error handling in SQL 2010-05-10 17:01:39 -05:00
Colin Kuskie
ad88c37581 Revert back to the old setRow that handles sparse updates, like the one used by Group. 2010-05-06 20:48:39 -07:00
Colin Kuskie
7032e86cf1 Change cache strategy for User.t. Fix setRow in SQL.pm to accept overrides in row identifiers. 2010-05-06 15:50:43 -07:00
Graham Knop
7ff307cabe fix double sub def in WebGUI::SQL 2010-04-16 20:57:13 -05:00
Graham Knop
907a148313 remove webgui specific dbi tracing code, simplify errorhandler 2010-04-16 20:55:49 -05:00
Graham Knop
0bff8a0fa4 WebGUI::SQL as DBI subclass 2010-04-16 20:54:04 -05:00
Graham Knop
5b25692561 first shot at DBI tracing code 2010-04-16 20:53:35 -05:00
Graham Knop
2400f19099 Merge branch 'master' into WebGUI8 2010-04-13 07:50:02 -05:00
Doug Bell
8701842829 Merge branch 'innodb' into 8
Conflicts:
	lib/WebGUI/Asset/Wobject/DataForm.pm
2010-02-17 15:09:04 -06:00
Colin Kuskie
1ce5e4ebab Give SQL.pm a quote_identifier wrapper. 2010-01-13 16:42:29 -08:00
Yung Han Khoe
2987ed44bc Changing some SQL methods to quote table names 2009-11-16 12:11:45 +01:00
JT Smith
acf8e7816d fixed to work with constraints 2009-10-20 15:01:01 -05: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