phemellc / yii2-settings

Yii2 Settings Module
Other
151 stars 74 forks source link

Use active query condition to work with PostgreSQL #18

Closed grzegorzkurtyka closed 9 years ago

grzegorzkurtyka commented 9 years ago

Original condition is not DB agnostic. Postgres needs its string formatting. Otherwise it ends up with:

   zero-length delimited identifier at or near """"
   LINE 1: ...ELECT DISTINCT "section" FROM "settings" WHERE section <> ""
arisk commented 9 years ago

Thank you!