This topic is locked

A bug? 1239989894898 convert to 1.2399+E12

11/1/2007 6:54:01 PM
PHPRunner General questions
E
elomor author

Hi, i've a big problem.
My tables have a primary key that is a decimal(20), well, when the List Page pass the code by URL to EDIT page, it pass this:
1239989894898
but in the query the PHPRunner convert the number in "WHERE code=' 1.2399+E12' (for example)
Is this a bug of PHPRunner?
How can solve it?
Thanks.

Alexey admin 11/2/2007

Hi,
PHPRunner doesn't support large numbers as key fields.
Please try out this workaround.

Open generated include\commonfunctions.php file with a text editor.

Find this line there:

$value=0+$strvalue;

and replace it with this snippet:

if(is_numeric($strvalue))

$value=$strvalue;

else

$value=0;



Let me know if this helps and we'll include this fix into next update of PHPRunner.

E
elomor author 11/5/2007

Ok, it goes ok,
very thanks!!

Hi,

PHPRunner doesn't support large numbers as key fields.
Please try out this workaround.

Open generated include\commonfunctions.php file with a text editor.

Find this line there:

and replace it with this snippet:

Let me know if this helps and we'll include this fix into next update of PHPRunner.