Author Topic: User Selection Custom Query Limitations?  (Read 1485 times)

kyle

  • Posts: 30
    • View Profile
    • http://www.LessonPlansPage.com
User Selection Custom Query Limitations?
« on: October 19, 2007, 05:19:15 pm »
Hi Dean / All,
I just upgraded to 1.87d from 1.85 hoping it would fix this issue.  Apparently the custom query has a length limitation?  For example, when I enter the following query and test it works just fine:

WHERE (list = '1' and cnf = '1' AND user7 != 'Virginia') AND (list = '1' and cnf = '1' AND user7 != 'Missouri') AND (list = '1' and cnf = '1' AND user7 != 'Kansas') AND (list = '1' and cnf = '1' AND user7 != 'Vermont') AND (list = '1' and cnf = '1' AND user7 != 'Maryland') AND (list = '1' and cnf = '1' AND user7 != 'Wisconsin') AND (list = '1' and cnf = '1' AND user7 != 'Idaho') AND (list = '1' and cnf = '1' AND user7 != 'Montana') AND (list = '1' and cnf = '1' AND user7 != 'California')

But then when I click Save / Add, it loses part of the custom query (apparently a length limitation of 256 characters):
WHERE (list = '1' and cnf = '1' AND user7 != 'Virginia') AND (list = '1' and cnf = '1' AND user7 != 'Missouri') AND (list = '1' and cnf = '1' AND user7 != 'Kansas') AND (list = '1' and cnf = '1' AND user7 != 'Vermont') AND (list = '1' and cnf = '1' AND us

Is there a fix for this?  I don't think I really need it as I've found a way to do what I need with the GUI selector (in 1.85 it wouldn't even keep long queries properly in the automatic GUI selector, so my problem was mostly fixed).  Thanks,
--Kyle

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
User Selection Custom Query Limitations?
« Reply #1 on: October 21, 2007, 04:03:27 am »
Hi Kyle,

Are you familiar with PhpMyAdmin?  Try this query, which will be applied in future updates:
Code: [Select]
ALTER TABLE lm_selectd CHANGE q q TEXT NOT NULL
Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

kyle

  • Posts: 30
    • View Profile
    • http://www.LessonPlansPage.com
User Selection Custom Query Limitations?
« Reply #2 on: October 21, 2007, 09:15:52 am »
Great, thanks Dean!
--Kyle