Jump to content

Does executeS() turn every value into a string?


theillo

Recommended Posts

I'm fetching some stuff from a DB, and it seems like every column is turned into a string, even if it's really an integer.

Am I doing something wrong?

 

$sql = 'SELECT * FROM `'._DB_PREFIX_.'mytable` WHERE id_assignment='.(int)$id_assignment.' ORDER BY position ASC'
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...