2009年2月24日星期二

Re: [fw-db] Fetched values all converted to strings

Well i assume the method doesn't determine the values type by it's type in the DB. I assume it should try to determine the type by simple checks (not sure though) still that won't give you 100% guarantee as typing INTEGER, STRING in the second parameter. I might be wrong, you better wait for someone with a little more experience with it then i have.

Vince.

On Tue, Feb 24, 2009 at 9:37 PM, Vince42 <zf@vineal.de> wrote:
Hi,

vadim gavrilov schrieb:
> I am not sure but i think you can specify a second parameter such as
> 'INTEGER' and it will treat the value as int.

But shouldn't the data automagically be converted into the appropriate
data type? I don't want to worry about forgetting a parameter or
something - i just want to be the value to be an integer, if the
database says it's an integer - this reduces the effort of quoting etc
... and as far as i recall this used to work perfectly in one of the
earlier releases fof ZF.

--
Cheers,                        \\|//
Vince                          (o o)
----------------------------ooO-(_)-Ooo-------------------------
 '''   (o)_(o)                                        [ ][0][ ]
 ô¿ô   (=°o°=)   World Domination by Copy and Paste   [ ][ ][0]
 -    (")_(")                                        [0][0][0]

 ()  ascii ribbon campaign - against html e-mail
 /\  www.asciiribbon.org   - against proprietary attachments
                                  Ooo.
---------------------------.ooO----(  )-------------------------
                          (  )    (_/
                           \_)




--
Vincent Gabriel.
Lead Developer, Senior Support.
Zend Certified Engineer.




没有评论: