Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
DB::Query results values is all string type
  • As titled, I have MySQL Table defines columns as float, double, int etc, but they all returned with double quote as string type.

    I remember ORM have Observer_Typing to do the typing automatically.

    Is there anyway to do the typing automatically for DB::Query as well?
  • HarroHarro
    Accepted Answer
    The PHP MySQL driver returns all values as string, so that is outside the framework's control.

    There is no typing option for low-level DB queries, you'll have to handle that in your model.
  • I see, thanks Harro!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion