Monthly Archives: April 2008

MySQL Feature Bingo

Using newish features in MySQL is kind of like playing bingo. Especially if you don’t control the version of the server you are working with. Here are some excerpts from the official manual that illustrate this point:

  • Support for triggers is included beginning with MySQL 5.0.2.
  • Before MySQL 5.0.10, triggers cannot contain direct references to tables by name.
  • The DEFINER clause specifies the MySQL account to be used when checking access privileges at trigger activation time. It was added in MySQL 5.0.17.
  • From MySQL 5.0.17 on, MySQL checks trigger privileges like this:
  • In MySQL Server 3.23.44 and up, the InnoDB storage engine supports checking of foreign key constraints
  • As of MySQL 4.1.1, mysqldump generates dump files that take advantage of this capability automatically when they are reloaded.
  • Views (including updatable views) are implemented beginning with MySQL Server 5.0.1.
  • Beginning with MySQL 5.0.3, the grant system takes stored routines into account as follows:
  • As of MySQL 5.0.1, a stored procedure or function is associated with a particular database.
  • Multiple SELECT statements generate multiple result sets, so the client must use a MySQL client library that supports multiple result sets. This means the client must use a client library from a version of MySQL at least as recent as 4.1.

…and the list goes on of course.

Online Learning Systems and Search

Back when I was a CS undergrad, Blackboard was not very popular yet (at least among the nerdy CS faculty).  Most classes had a class web site involving a tilde, the professor’s username and some quick and dirty HTML.  They were generally extremely simple, concise, and easy to navigate.  Additionally, they were open to the public either out of intention or lack of effort to secure them.  As a result, one could visit the ASU web site and search for a class like CSE 340 and find a collection of class web sites with syllabi, assignments, etc.  This was really useful for getting a feel for a class and/or professor’s style before actually registering for it.  You could read the syllabus and see what material would be covered, whether group work would be involved, how it would be graded, etc.  It was all very nice.

Now, everyone uses Blackboard and all of the course resources are on lockdown (perhaps for the reverse reasons as they were previously public).  You pretty much can’t find anything useful if you search for a class number on the ASU web site, based on my quick testing.  I suppose this is a good thing, because many professors consider such materials part of the intellectual property and don’t want them to be freely available, but I think quite a few wouldn’t mind if prospective enrollees were able to read through the course materials.  Perhaps an opencourseware system is the answer.