I'm getting the following error when I go to export the views definition:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND twtid IN (1,2,3,4,6,7)' at line 2 query: SELECT twtid, tablename, dbconnection FROM tw_tables AND twtid IN (1,2,3,4,6,7) in /sites/all/modules/tw/tw_tablebuild.inc on line 44.
It looks like it's either missing the first WHERE clause, or needs to remove the AND when there's only one. I saw this as I was about to leave the office, so I'll try to check it out further this weekend and attempt a patch if I find it.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 806014.patch | 418 bytes | mdorman |
Comments
Comment #1
mdorman commentedI replaced the AND with WHERE, since there were no previously defined WHERE clauses in the $sql variable. So far this worked for me, but there was obviously another WHERE clause in previous versions, so there might be other issues.
Comment #2
betz commentedI can confirm the error.
Comment #3
jimmynash commentedI ran into the error as well. So far the patch in #1 has worked for me.
Comment #4
tom_o_t commentedConfirming both the problem and that the patch in #1 works.
Comment #5
andrewlevine commentedYou can see clearly where this bug came from in the following link. Not quite sure how this bug hasn't seen more activity since it breaks exporting tables in 6.x-1.2.
http://drupalcode.org/viewvc/drupal/contributions/modules/tw/tw_tablebui...
Comment #6
scottprive commentedSame problem, reproduced on a clean install of latest modules.
Comment #7
scottprive commentedI trust that this is a showstopper for many, priority re-set.
Comment #8
scottprive commentedI reverted to version 1.1 and do not get the error. If applying a patch is not an option for you, 1,1 may be.
Comment #9
mikeryanFix committed, thanks!