? cast_to_use_index_212327.patch
? i18n-ascii.txt
? no_slashes_alias_224243.patch
? pathauto-coding-standards-241132.patch
? pathauto-coding-standards-SP20080331-unified.patch
? pathauto_cast_use_index_212327-39.patch
Index: pathauto_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v
retrieving revision 1.29.4.25
diff -u -p -r1.29.4.25 pathauto_node.inc
--- pathauto_node.inc	3 Feb 2008 12:31:32 -0000	1.29.4.25
+++ pathauto_node.inc	5 Apr 2008 17:55:06 -0000
@@ -64,7 +64,7 @@ function node_pathauto_bulkupdate() {
   }
   $type_where .= ')';
 
-  $query = "SELECT nid, type, title, uid, created, src, dst, vid FROM {node} LEFT JOIN {url_alias} ON CONCAT('node/', nid) = src WHERE src IS NULL ". $type_where;
+  $query = "SELECT nid, type, title, uid, created, src, dst, vid FROM {node} LEFT JOIN {url_alias} ON CAST(CONCAT('node/', nid) AS CHAR) = src WHERE src IS NULL ". $type_where;
   $result = db_query_range($query, $pattern_types, 0, variable_get('pathauto_max_bulk_update', 50));
 
   $count = 0;
Index: pathauto_taxonomy.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_taxonomy.inc,v
retrieving revision 1.20.4.21
diff -u -p -r1.20.4.21 pathauto_taxonomy.inc
--- pathauto_taxonomy.inc	29 Feb 2008 20:52:55 -0000	1.20.4.21
+++ pathauto_taxonomy.inc	5 Apr 2008 17:55:06 -0000
@@ -49,7 +49,7 @@ function taxonomy_pathauto($op) {
  */ 
 function taxonomy_pathauto_bulkupdate() {
   $forum_vid = variable_get('forum_nav_vocabulary', '');
-  $query = "SELECT tid, vid, name, src, dst FROM {term_data} LEFT JOIN {url_alias} ON CONCAT('taxonomy/term/', tid) = src WHERE src IS NULL AND vid != %d";
+  $query = "SELECT tid, vid, name, src, dst FROM {term_data} LEFT JOIN {url_alias} ON CAST(CONCAT('taxonomy/term/', tid) AS CHAR) = src WHERE src IS NULL AND vid != %d";
   $result = db_query_range($query, $forum_vid, 0, variable_get('pathauto_max_bulk_update', 50));
   
   $count = 0;
@@ -128,7 +128,7 @@ function forum_pathauto($op) {
  */
 function forum_pathauto_bulkupdate() {
   $forum_vid = variable_get('forum_nav_vocabulary', '');
-  $query = "SELECT tid, vid, name, src, dst FROM {term_data} LEFT JOIN {url_alias} ON CONCAT('forum/', tid) = src WHERE vid = %d AND src IS NULL";
+  $query = "SELECT tid, vid, name, src, dst FROM {term_data} LEFT JOIN {url_alias} ON CAST(CONCAT('forum/', tid) AS CHAR) = src WHERE vid = %d AND src IS NULL";
   $result = db_query_range($query, $forum_vid, 0, variable_get('pathauto_max_bulk_update', 50));
 
   $count = 0;
Index: pathauto_user.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_user.inc,v
retrieving revision 1.17.4.17
diff -u -p -r1.17.4.17 pathauto_user.inc
--- pathauto_user.inc	16 Dec 2007 21:57:13 -0000	1.17.4.17
+++ pathauto_user.inc	5 Apr 2008 17:55:06 -0000
@@ -84,7 +84,9 @@ function tracker_pathauto($op) {
  * Bulk generate aliases for all users without aliases
  */
 function user_pathauto_bulkupdate() {
-  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON CONCAT('user/', uid) = src WHERE uid > 0 AND src IS NULL";
+  // We do the double CONCAT because Pgsql8.1 doesn't support more than three arguments to CONCAT
+  // Hopefully some day we can remove that.
+  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON CAST(CONCAT(CONCAT('user/', uid), '/track') AS CHAR) = src WHERE uid > 0 AND src IS NULL";
   $result = db_query_range($query, 0, variable_get('pathauto_max_bulk_update', 50));
   
   $count = 0;
@@ -107,7 +109,7 @@ function user_pathauto_bulkupdate() {
  * Bulk generate aliases for all blogs without aliases 
  */
 function blog_pathauto_bulkupdate() {
-  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON CONCAT('blog/', uid) = src WHERE uid > 0 AND src IS NULL";
+  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON CAST(CONCAT('blog/', uid) AS CHAR) = src WHERE uid > 0 AND src IS NULL";
   $result = db_query_range($query, 0, variable_get('pathauto_max_bulk_update', 50));
   
   $count = 0;
@@ -129,7 +131,7 @@ function blog_pathauto_bulkupdate() {
  * Bulk generate aliases for user trackers without aliases 
  */
 function tracker_pathauto_bulkupdate() {
-  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON CONCAT('user/', uid,'/track') = src WHERE uid > 0 AND src IS NULL";
+  $query = "SELECT uid, name, src, dst FROM {users} LEFT JOIN {url_alias} ON  CAST(CONCAT('user/', uid,'/track') AS CHAR) = src WHERE uid > 0 AND src IS NULL";
   $result = db_query_range($query, 0, variable_get('pathauto_max_bulk_update', 50));
   
   $count = 0;
