• هاست سان
  • با خرید اشتراک ویژه شما میتوانید جدیدترین آپدیت افزونه ها و قالب های زیبا و پرکاربرد زنفورو را دریافت کنید!

    هر ماه یک کد تخفیف 60 درصدی محصولات فروشگاه به کاربران منتخب بخش ویژه اهدا می‌شود

Bug in SqlConstraint.php - Only takes first value from possible values.

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

XFFA.IR Bot

پرسنل مدیریت
کاربر ویژه پلاس
کاربر ویژه طلایی
امتیازها 113
راه‌حل‌ها 27
I hope I am not wasting anyone's time by reporting a bug in 2.1.7. It's niche enough that I expect it still exists in the latest version.
I was passing an array of values to a SqlConstraint and the result was unexpected.

Here's my example:
Code:

کد:
$query->withSql(new SqlConstraint(
    'thread.discussion_state IN (%s)',
    ['visible', 'deleted'],
    $this->getThreadQueryTableReference()
));
The result is unexpectedly this:
Code:

thread.discussion_state = 'visible'
It only...

Bug in SqlConstraint.php - Only takes first value from possible values.
 
امضا : XFFA.IR Bot
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.

موضوعات مشابه

عقب
بالا