I'm using ZF1
latest version.
My table looks like this:
CREATE TABLE `mytable` (
`id` INT(11) NOT NULL DEFAULT '0',
`right_value` BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=MyISAM
CHECKSUM=1;
When I do something like this:
$sel = new Zend_Db_Select($zdb);
$sel->from($table)
->order($tablePk);
$dbData = $zdb->fetchAll($sel);
I get the value of my column right_value
as an int. Logically if the BIGINT
is big enough I get wrong values in php.
I googled around but all I found was that people complain about getting int
as string
, not the other way round.
I'm using mysqli
as a setup for my Zend Adapter.
Any ideas how I get the value as string so php won't alter it?