lox / pheasant

A lightweight data mapper designed to take advantage of PHP 5.3+
http://getpheasant.com
MIT License
101 stars 21 forks source link

Fix empty IN() queries #134

Closed bjornpost closed 9 years ago

bjornpost commented 9 years ago

As reported by @Jud in #107. This PR replaces IN () with IN (null) when calling $binder->magicBind('x = ?', array(array()));. I've also included a simple test case.

Jud commented 9 years ago

:+1: LGTM

Jud commented 9 years ago

@bjornpost will merge after rebase.