The attached patch provides SQL Server support to Workflow. It patches two major pieces: 1) The .install file, and 2) A UNION query that has ORDER BY statements for each UNIONed query. MSSQL requires that only one ORDER BY be done on the entire UNION as a whole. I'm not sure if this poses issues for MySQL and PostgreSQL, so please let me know. I wanted to avoid making MSSQL-specific exceptions in code if it could be avoided.
| Comment | File | Size | Author |
|---|---|---|---|
| workflow-mssql.patch | 5.63 KB | pcorbett |
Comments
Comment #1
NoRandom commentedHi, pcorbett.
Could be this issue http://drupal.org/node/442864 related to your patch? I don't know anything about mysql, it's just a supposition.
Comment #2
pcorbett commentedUm, I don't think so. My patch involved the UNION and there is no UNION in http://drupal.org/node/442864. My patch wasn't fixing an error per se, it was just adjusting the query to work with more databases. Does that make sense? So, I don't think http://drupal.org/node/442864 is related to what I was posting the patch for.
Comment #3
deekayen commentedI know you're trying to put queries in blocks for readability, but that's non-standard for Drupal scripting. At a minimum, I'm sure the one-line queries should be $result = db_query("SELECT ...");
Comment #4
deekayen commentedOn second review, I see John has previously used the queries in blocks, so nevermind about that.
What's left that I am more concerned about is the block at the top of the patch where there was a space added for "comm ent". Was that intentional?
Comment #5
pcorbett commentedHmm, I'm not sure what that comment text is... it can be removed as far as I am concerned.
Comment #6
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn