You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ca4187f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ví někdo, jak se řeší escape sloupce?
->where("? = ?", $idCol, $id)
- nefunguje v MySQL protoze z toho vylezeWHERE 'idCol' = 'id'
(misto ` se prida apostrof)->where(array($idCol => $id))
- jak jsem zjistil je to same jako->where("$idCol = ?" => $id))
:/
ca4187f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hrach: poradíš pls? :)
ca4187f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
escape sloupce jedine pres http://api.nette.org/2.3/Nette.Database.Connection.html#_quote. Bohuzel. viz. nette/nette#1324