Last modified: 2012-08-04 20:48:55 UTC
Created attachment 5177 [details] Fix query On lines 79-81 of ApiQueryLinks.php, I'm guessing an attempt at using expression aliases is being done here. However only (afaik) with MySQL is using AS optional, other DB's (PG for example) using AS is required when trying to alias the select expression. Otherwise you'll get an DB Error when it tries to pass the query: 2008-08-15 02:43:54 CDT ERROR: syntax error at or near "pl_from" at character 52 2008-08-15 02:43:54 CDT STATEMENT: SELECT /* ApiQueryLinks::run OverlordQ */ tl_from pl_from,tl_namespace pl_namespace,tl_title pl_title FROM templatelinks WHERE tl_from = '58' ORDER BY tl_namespace, tl_title LIMIT 11
Will commit patch when I get back home tomorrow.
Patch applied in r39502.