CVS log for loncom/interface/lonmysql.pm

[BACK] Up to [LON-CAPA] / loncom / interface

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Nov 20 18:02:55 2019 UTC (4 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5_msu, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, HEAD
Diff to previous 1.40: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.40: +2 -1 lines
- Bug 6825

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Aug 14 16:13:22 2016 UTC (8 years, 2 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2
Diff to previous 1.39: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.39: +2 -2 lines
- Ensure course's "temporary" MySQL tables for student information are
  current when Chart or Statistics web GUI is used.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue May 31 02:40:02 2011 UTC (13 years, 5 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, version_2_10_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
Diff to previous 1.38: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.38: +2 -2 lines
- TYPE=MYISAM was replaced with ENGINE=MYISAM in MySQL 4.
- TYPE was deprecated in 4 and 5.0/5.1.  It is no longer supported in 5.5.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Feb 1 22:03:42 2009 UTC (15 years, 9 months ago) by lueken
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_99_1, version_2_8_99_0, version_2_10_0_RC2, version_2_10_0_RC1, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, GCI_3, GCI_2, BZ5971-printing-apage, BZ5434-fox
Diff to previous 1.37: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.37: +20 -7 lines
Show-Tables Cache: Buffering the result for later use in tables_in_db function (much faster)

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Apr 11 22:37:17 2007 UTC (17 years, 7 months ago) by albertel
Branches: MAIN
CVS tags: version_2_8_X, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_99_0, GCI_1
Diff to previous 1.36: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.36: +1 -2 lines
- log spew

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Mar 12 17:10:02 2007 UTC (17 years, 8 months ago) by albertel
Branches: MAIN
Diff to previous 1.35: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.35: +33 -11 lines
- need to clean usernames and domains of nonword characters to use them as table names

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:33:32 2005 UTC (19 years, 2 months ago) by matthew
Branches: MAIN
CVS tags: version_2_3_X, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1
Diff to previous 1.34: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.34: +5 -17 lines
A better fix for the last commit.  No longer rely on hard-coded column names.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:21:05 2005 UTC (19 years, 2 months ago) by matthew
Branches: MAIN
Diff to previous 1.33: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.33: +5 -6 lines
Removed/commented out debugging code.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Aug 24 19:13:07 2005 UTC (19 years, 2 months ago) by matthew
Branches: MAIN
Diff to previous 1.32: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.32: +31 -4 lines
Fixed MySQL 4 bug where &update_table_status returned bogus data.  This is
only a temporary fix as it still has the bug of hard-coding the data fields.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Jul 11 13:49:47 2005 UTC (19 years, 4 months ago) by matthew
Branches: MAIN
CVS tags: version_2_0_0, version_1_99_3, version_1_99_2
Diff to previous 1.31: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.31: +2 -1 lines
Debugging code.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Apr 11 21:36:50 2005 UTC (19 years, 7 months ago) by albertel
Branches: MAIN
CVS tags: version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0
Diff to previous 1.30: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.30: +0 -1 lines
- I'm an idiot

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Apr 11 15:33:46 2005 UTC (19 years, 7 months ago) by albertel
Branches: MAIN
Diff to previous 1.29: preferred, colored
Changes since revision 1.29: +2 -1 lines
- wrap_symb ddoes the checking so no need to check it before calling it

Revision 1.29: download - view: text, markup, annotated - [selected for diffs]
Thu Apr 7 06:56:23 2005 UTC (19 years, 7 months ago) by albertel
Branches: MAIN
Diff to previous 1.28: preferred, colored
Changes since revision 1.28: +5 -4 lines
- ENV -> env

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Feb 21 18:08:19 2005 UTC (19 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.27: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.27: +2 -2 lines
&fix_table_name MySQL barfs on 1234E5678 as well as 1234e5678.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Feb 21 17:23:32 2005 UTC (19 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.26: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.26: +16 -3 lines
Added ability to specify the database to connect to in
&set_mysql_user_and_password() to make it possible to test lonmysql.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Feb 9 21:21:08 2005 UTC (19 years, 9 months ago) by matthew
Branches: MAIN
Diff to previous 1.25: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.25: +16 -1 lines
lonmysql.pm: Added &fix_table_name, which takes care of some of
MySQLs stupidity by prepending a '_' to table names which would
be interpreted as numbers.
Modified lontrackstudent.pm to use lonmysql and call fix_table_name

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 20 19:53:36 2004 UTC (19 years, 10 months ago) by matthew
Branches: MAIN
CVS tags: version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0
Diff to previous 1.24: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.24: +31 -3 lines
lonmysql:Added &table_information, which returns the metadata mysql keeps
    about the tables.
    Modified &update_table_info to turn the MySQL dates (creation,
    update, and check times) into unix times.
parse_activity_log.pl: Use LONCAPA::Configuration to set configuration
    options instead of the removed subroutine &initialize_configuration
    Modified backup handling code - if a table is missing and any of the
    current tables has been modified since the backup file was written,
    back up the current tables (even though one or more is missing) to
    a filename what will not be overwritten automatically, just to
    be sure no data is being lost.
    &load_backup_tables: Now actually use the filename we pass in instead of
    hard coding a file which may not actually exist.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Aug 20 01:27:05 2004 UTC (20 years, 2 months ago) by matthew
Branches: MAIN
CVS tags: version_1_2_99_1, version_1_2_99_0
Diff to previous 1.23: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.23: +3 -12 lines
Removed redundant code in create_table which caused searching to fail.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Jul 26 19:36:21 2004 UTC (20 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.22: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.22: +53 -1 lines
Added &bulk_store_rows, to take advantage of MySQLs ability to store multiple
rows at a time.  Currently untested.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Jul 21 21:14:36 2004 UTC (20 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.21: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.21: +2 -2 lines
Remove ummmm debuging code.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Jul 21 21:01:04 2004 UTC (20 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.20: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.20: +74 -29 lines
Remove dependence on Apache::lonnet.
Added: package variables $mysqluser and $mysqlpassword.
Added: &set_mysql_user_and_password to set or look up via lonnet
  the user and password for MySQL
Modified &connect_to_db and &verify_sql_connection to call
&set_mysql_user_and_password if neccessary and to use $mysqluser and
$mysqlpassword.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Apr 19 21:29:15 2004 UTC (20 years, 6 months ago) by matthew
Branches: MAIN
CVS tags: version_1_2_X, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0
Diff to previous 1.19: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.19: +3 -2 lines
&create_table: now report the error (with $dbh->errstr()) instead of
acting like we did and there was no error.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Mar 3 17:19:06 2004 UTC (20 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.18: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.18: +10 -8 lines
For some reason we occasionally need to execute the 'SHOW TABLES' call
twice in &tables_in_db().

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 27 16:58:36 2003 UTC (20 years, 10 months ago) by www
Branches: MAIN
Diff to previous 1.17: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.17: +21 -1 lines
Update metadata entry on re-publication

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Dec 27 01:44:49 2003 UTC (20 years, 10 months ago) by www
Branches: MAIN
Diff to previous 1.16: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.16: +3 -4 lines
column in DELETE cannot have quotes.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Dec 26 19:12:51 2003 UTC (20 years, 10 months ago) by www
Branches: MAIN
Diff to previous 1.15: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.15: +36 -1 lines
Was trying to store UNIX timestamps into MySQL DATE field

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Jun 2 17:01:05 2003 UTC (21 years, 5 months ago) by matthew
Branches: MAIN
CVS tags: version_1_1_X, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, version_1_0_3, version_1_0_2, version_1_0_1, version_1_0_0, version_0_99_5, version_0_99_4, version_0_99_3, version_0_99_2, conference_2003
Diff to previous 1.14: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.14: +2 -1 lines
Update to drop_table to make it clear out the internal bookkeeping for
the tables it drops.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Jun 2 16:44:01 2003 UTC (21 years, 5 months ago) by matthew
Branches: MAIN
Diff to previous 1.13: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.13: +28 -1 lines
Added &drop_table($tableid) to drop tables when we need to clean up.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Apr 18 15:50:55 2003 UTC (21 years, 6 months ago) by matthew
Branches: MAIN
CVS tags: version_0_99_1, version_0_99_0
Diff to previous 1.12: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.12: +28 -1 lines
Added &Apache::lonmysql::verify_sql_connection() to test the daemons ability
to talk to the database.
Modified &Apache::lonstatistics::handler to call verify_sql_connection and
give an error message to the user.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Mar 21 16:04:42 2003 UTC (21 years, 7 months ago) by matthew
Branches: MAIN
Diff to previous 1.11: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.11: +2 -1 lines
Added setting of $debugstring in &remove_from_table.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Mar 17 18:35:51 2003 UTC (21 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.10: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.10: +28 -23 lines
Updated lonmysql.pm to allow more than one 'KEY', 'INDEX', etc. entry.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Mar 14 15:37:02 2003 UTC (21 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.9: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.9: +21 -1 lines
Added &get_dbh() to allow the user direct access to the dbh.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Mar 13 19:08:52 2003 UTC (21 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.8: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.8: +134 -17 lines
lonmysql:
   Added &replace_row, which is analogus to &store_row but it does a
'REPLACE' instead of 'STORE'.
   Changed somewhat the table definition.  PRIMARY KEY, KEY, INDEX,
UNIQUE [INDEX], and FULLTEXT [INDEX] are now able to be specified.
Previously only FULLTEXT was allowed.

lonsearchcat.pm:
   Updated to use new mechanism for specifying FULLTEXT indexing.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Mar 10 21:22:36 2003 UTC (21 years, 8 months ago) by matthew
Branches: MAIN
Diff to previous 1.7: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.7: +33 -23 lines
Modified data structure expected by lonmysql::create_table.
$table->{'columns'} is now an array ref instead of a hash ref.

Cleaned up POD in lonmysql.pm

lonsearchcat.pm has been tested and does work.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Aug 21 21:29:51 2002 UTC (22 years, 2 months ago) by matthew
Branches: MAIN
CVS tags: version_0_6_2, version_0_6
Diff to previous 1.6: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.6: +5 -2 lines
Deal cleanly with $dbh not being defined at all.  I have no idea how this
happens, but appearantly it does.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Aug 12 14:50:18 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
CVS tags: version_0_5_1, version_0_5
Diff to previous 1.5: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.5: +2 -7 lines
No need to escape and unescape values.  This was preventing dates from
being stored properly.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Aug 9 17:08:19 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.4: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.4: +38 -4 lines
General cleanups.
Added new function &remove_from_table to remove a row from a table.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Aug 5 12:43:18 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.3: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.3: +2 -2 lines
Handle empty @fulltext list.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jul 30 18:26:40 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.2: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.2: +155 -96 lines
Many changes to documentation and many code cleanups.  In particular, the
package variable %Tables was redefined.
&get_table_info was renamed &update_table_info and completely rewritten.
&create_table now has a new calling structure.
More error checking has been introduced to many functions.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Jul 28 18:21:13 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
Diff to previous 1.1: preferred, colored to selected 1.29: preferred, colored
Changes since revision 1.1: +16 -9 lines
Replaced unimplemented &query_table with (implemented) &number_of_rows.
Changed &get_rows to use WHERE instead of HAVING in SQL query.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jul 26 16:22:24 2002 UTC (22 years, 3 months ago) by matthew
Branches: MAIN
Diff to selected 1.29: preferred, colored
LON-CAPA interface to MySQLs loncapa database.  perldoc lonmysql.pm for more
information and interface description.  Not yet complete, but reasonably close.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>