Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Yet Another 8.0.2 bug

Guest
Jun 22, 2006 Jun 22, 2006
With 8.0.2 (at least with PHP/MySQL) you can no longer use a variable in your custom SQL more than once. You must specify "duplicate" variables. For example - I want to find all records where either SCORE is equal to a passed URL parameter or PLACE is equal to the same URL parameter. This will NOT work anymore:

SELECT * FROM mytable
WHERE score = varTheParam OR place = varTheParam


Define your varTheParam, try to test the results and you get yelled at because varTheParam is undefined. Your SQL must be like this:

SELECT * FROM mytable
WHERE score = varTheParam OR place = varTheSameParamAgain


Now, define your varTheParam and varTheSameParamAgain - setting them both equal to the same thing. A waste of resources here.
TOPICS
Server side applications
202
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2006 Jun 22, 2006

"abtech123" <webforumsuser@macromedia.com> wrote in message
news:e7ei9g$b3s$1@forums.macromedia.com...
> With 8.0.2 (at least with PHP/MySQL) you can no longer use a variable in
> your
> custom SQL more than once. You must specify "duplicate" variables. For
> example
> - I want to find all records where either SCORE is equal to a passed URL
> parameter or PLACE is equal to the same URL parameter. This will NOT work
> anymore:

Good catch. Just another in the long list of severe recordset bugs in the
8.0.2 updater.

Tom


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 22, 2006 Jun 22, 2006
Come on 8.0.3 update....or just reinstall 8 and not the latest update. :-)




"Tom Muck" <tommuck@NOSPAM.basic-drumbeat.com> wrote in message
news:e7eida$bcf$1@forums.macromedia.com...
>
> "abtech123" <webforumsuser@macromedia.com> wrote in message
> news:e7ei9g$b3s$1@forums.macromedia.com...
>> With 8.0.2 (at least with PHP/MySQL) you can no longer use a variable in
>> your
>> custom SQL more than once. You must specify "duplicate" variables. For
>> example
>> - I want to find all records where either SCORE is equal to a passed URL
>> parameter or PLACE is equal to the same URL parameter. This will NOT work
>> anymore:
>
> Good catch. Just another in the long list of severe recordset bugs in the
> 8.0.2 updater.
>
> Tom
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 24, 2006 Jun 24, 2006
LATEST
I was wondering what was going on with these variables. Least there's a work around.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines