Closed (won't fix)
Project:
Internationalization
Version:
5.x-2.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2007 at 12:55 UTC
Updated:
12 May 2011 at 09:05 UTC
Jump to comment: Most recent file
Comments
Comment #1
jose reyero commentedI'm not developing nor testing with pgsql so all fixes are welcomed.
But it seems you forgot to post the patch!
Comment #2
ivansb@drupal.orgI just upgraded to 5.x-2.2 from 5.x-2.1 to test the patch on a newer version. Everything went smooth, no db change were required... and this is the patch...
I changed all the != to <>. Up to my knowledge while != is supported by pg too it is not part of sql92 standard. I wouldn't bet on it, but the change shouldn't (actually doesn't) hurt at all.
There are many != all around other files in the package... but since they didn't hurt for pg.... they are still there.
Comment #3
ivansb@drupal.orgJust updated to fix security problems and the issue is still there.
Here is the patch... same changes as before.
Comment #4
jose reyero commentedThanks
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
ekes commentedThis patch added:
AND n.trid is not nullhowever the trid column in the tables {i18n_node} and {term_node} aretrid int(10) unsigned NOT NULL default '0'. I guess that previously was relying on n.trid not being NULL or 0, because now the query joins trid n.trid 0 = a.trid 0 when there is no translation and returns a whole bunch of rows quite incorrectly.Suggest replacing the line with for example for translation_node_nid:-
$translation = db_result(db_query("SELECT n.nid FROM {i18n_node} n INNER JOIN {i18n_node} a ON n.trid = a.trid AND n.nid <> a.nid WHERE a.nid = %d AND n.language = '%s' AND n.trid > 0", $nid, $language ? $language : i18n_get_lang()));I'm having a problem with cvs connection so a patch rolled against two local copies of translation.module on my machine is attached.
Comment #7
R.Hendel commentedDeprecated - D5 is no longer supported.