[system] / branches / rel-2-2-dev / webwork-modperl / lib / WeBWorK / DB / Schema / SQL.pm Repository:
ViewVC logotype

Log of /branches/rel-2-2-dev/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 4123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 7 19:32:38 2006 UTC (6 years, 11 months ago) by sh002i
File length: 11180 byte(s)
Diff to previous 3972
backport (sh002i): replace "SELECT *" with explicit list of fields to
avoid problems when columns are ordered differently in the database.
fixes bug #1033.

Revision 3972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 23:12:05 2006 UTC (7 years, 3 months ago) by sh002i
File length: 11129 byte(s)
Diff to previous 3879
update copyright date range -- 2000-2006. this is probably overkill,
since there are some files that were created after 2000 and some files
that were last modified before 2006.

Revision 3879 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 7 02:08:53 2006 UTC (7 years, 4 months ago) by
File length: 11140 byte(s)
Diff to previous 3590
This commit was manufactured by cvs2svn to create branch 'rel-2-2-dev'.

Revision 3590 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 30 05:49:59 2005 UTC (7 years, 8 months ago) by jj
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 11140 byte(s)
Diff to previous 3485
Fixes bug in add where blank values were being turned into 0 by mysql for columns of type integer.  The analogous change was previously made to put.  This bug showed up when renumbering problems in ProblemSetDetail (e.g., renumbering) when a set was already assigned to users.

Revision 3485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 12 02:47:30 2005 UTC (7 years, 9 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 11051 byte(s)
Diff to previous 3396
added HiRes timing data to WeBWorK::Debug, removed WeBWorK::Timing. all
existing calls to the WeBWorK::Timing methods now pass the same messages
to debug().

added an option to WeBWorK::Debug to allow only certain subroutines to
log debug messages, in addition to the existing option to bar certain
subroutines from doing so.

Revision 3396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 22 21:20:07 2005 UTC (7 years, 10 months ago) by jj
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 11000 byte(s)
Diff to previous 3381
Made comparison safer when turning blank fields undefined (some are already
undefined).

Revision 3381 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 14 20:20:15 2005 UTC (7 years, 10 months ago) by jj
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10986 byte(s)
Diff to previous 3201
When putting entries into the mysql database, put in "" as NULL.  The
counterpart when retreiving values (that NULL is converted to "") is
already part of gets.

Revision 3201 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 21 19:41:15 2005 UTC (8 years, 2 months ago) by apizer
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10926 byte(s)
Diff to previous 2955
## Make lookups case insensitive.  Otherwise indices seem not to be used
which slows things down drastically.  See openwebwork-devel@lists.sourceforge.net
discussion.

Revision 2955 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 22:59:53 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10691 byte(s)
Diff to previous 2852
POD fixes

Revision 2852 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 29 23:38:40 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10695 byte(s)
Diff to previous 2851
make SQL comparisons case-sensitive. closes bug #679.

Revision 2851 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 29 23:37:21 2004 UTC (8 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10688 byte(s)
Diff to previous 2691
protect against sql injection attacks by using "?" everywhere.

Revision 2691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 27 21:14:23 2004 UTC (8 years, 8 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 10096 byte(s)
Diff to previous 2586
use "real" table names when checking names and overridden table names
when constructing sql statements

Revision 2586 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 10 23:55:57 2004 UTC (8 years, 9 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 9701 byte(s)
Diff to previous 2318
added comments, backquoted table names.

Revision 2318 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 18:53:51 2004 UTC (8 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 9337 byte(s)
Diff to previous 1772
promote undefined values to "" in gets() and getAll().

Revision 1772 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 00:49:19 2004 UTC (9 years, 3 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 9165 byte(s)
Diff to previous 1771
getAll works for problem as well as problem_user

Revision 1771 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 2 23:12:06 2004 UTC (9 years, 3 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 9129 byte(s)
Diff to previous 1670
Implemented the getAll method, to allow fast access to all problems in a
set. This speeds up Stats immensely.

Revision 1670 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 13 01:44:48 2003 UTC (9 years, 5 months ago) by gage
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 8935 byte(s)
Diff to previous 1669
Fixing cosmetic error at line 68 -- replaced @result[0] by
$result[0];
--Mike

Revision 1669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 13 01:30:20 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 8935 byte(s)
Diff to previous 1664
fixed stupid bug (#292)

Revision 1664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 02:42:28 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 8997 byte(s)
Diff to previous 1663
added "count" methods to the rest of the schemas. updated documentation.

Revision 1663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 8358 byte(s)
Diff to previous 1569
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.

Here is the new header:

################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
# Artistic License for more details.
################################################################################

Revision 1569 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 7 00:27:00 2003 UTC (9 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7701 byte(s)
Diff to previous 1568
fixed new implementations of "get" -- they need to return a single item,
not a list of items!

Revision 1568 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 6 23:50:58 2003 UTC (9 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7696 byte(s)
Diff to previous 1206
added optimized implementations for DB getOBJECTs functions.

Revision 1206 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 18 21:00:40 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 6756 byte(s)
Diff to previous 1168
removed unused code

Revision 1168 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jun 14 06:01:19 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7068 byte(s)
Diff to previous 1167
removed outdated warning.
-sam

Revision 1167 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 13 23:35:54 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7141 byte(s)
Diff to previous 972
Several changes to the DB system:

Made all schemas subclasses of WeBWorK::DB::Schema, factored common
constructor code out into Schema.pm. Made all drivers subclasses of
WeBWorK::DB::Schema, factored common constructor code out into
Driver.pm.

Removed superfluous style() and tables() functions from schemas and
drivers. (You can treat the constants in which these are defined as
functions, and call them like $object->STYLE or $object->STYLE().)

WeBWorK::DB now tries to build all tables defined in %dbLayout, instead
of using its own internal list. (TODO: add warnings if known tables are
not built or unknown tables are built.)

Made the error messages given during DB instantiation a little more
intelligent.

Changed the behavior of the exists() and delete() schema methods in all
schemas (and updated the docs) s.t. not all elements of @keyparts have
to be defined.

Changed WeBWorK::DB to allow undefined values to be passed instead of
IDs in delete* method calls, but only if the call was made from
WeBWorK::DB itself (to protect you from accidentally passing an
undefined value and clobbering your whole database).

Changed delete functions to be more efficient. For example,
deleteGlobalSet no longer has to say:

	$self->deleteUserSet($_, $setID)
		foreach $self->listSetUsers($setID);
	$self->deleteGlobalProblem($setID, $_)
		foreach $self->listGlobalProblems($setID);

Instead it says:

	$self->deleteUserSet(undef, $setID);
	$self->deleteGlobalProblem($setID, undef);

This is somewhat more efficient with hash-style schemas, and MUCH more
efficient with the SQL schema.

As usual, be wary of lingering bugs. w00t!
-sam

Revision 972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 20:08:53 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7628 byte(s)
Diff to previous 931
The delete() method now uniformly returns a false value (instead of
dying) if no matching record exists.
-sam

Revision 931 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 19:21:04 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7619 byte(s)
Diff to previous 923
changed the Schema interface (to include a reference to $db) and changed
DBI connect to connect_cached.
-sam

Revision 923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 01:27:38 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7597 byte(s)
Diff to previous 919
additional work on DB system and SQL backend.
Record:: classes now support a can() method.
fixed some other stuff.
-sam

Revision 919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 00:24:27 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7425 byte(s)
Diff to previous 915
changed ->id to ->whatever_id
-sam

Revision 915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 27 23:42:23 2003 UTC (9 years, 11 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7427 byte(s)
Diff to previous 904
croak instead of die.
-sam

Revision 904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 26 22:13:34 2003 UTC (10 years ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 7225 byte(s)
Diff to previous 874
More SQL work. Appears to be working, after very limited testing. See
forthcoming email for details.
-sam

Revision 874 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 20 23:08:03 2003 UTC (10 years ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/DB/Schema/SQL.pm
File length: 5559 byte(s)
initial work on SQL backend. untested.
-sam

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9