From: Mathew R. <mat...@iq...> - 2005-06-03 15:26:37
|
Hi Erick, Yeah, I was thinking the same thing, but it seems you can only type the whole return value, and not the values that make up the return value in the case of a complex object. http://www.amfphp.org/wiki/doku.php?id=methodtable&DokuWiki=23f0c51841cf34af69670cbb4370c641 From what I can see on the wiki, there is automatic typing that is done when returning a query result resource: http://www.amfphp.org/wiki/doku.php?id=datatypes Perhaps this is where I have to create a custom object and return that instead of a native resource? Thanks, Mathew .................................. Mathew J. Ray Sr. Interactive Developer IQ Interactive tel: 404.255.3550 fax: 770.956.8014 .................................. Erick Emde wrote: > I don't really know what I'm talking about, but is that set up in the > method table? > Erick > > Mathew Ray wrote: > >> Just ran into this... I have a query that is returning a resultset >> containing an unsigned int (id) field but when I set the result as the >> dataProvider of a dataGrid, the sorting is being done as if the id >> values were strings... >> >> I did: >> trace(typeof the_dg.dataProvider.getItemAt(0).id); >> >> and sure enough it output "string". >> >> The id field is an INT type in the mysql db, any way to make sure that >> the field is an int when the resultset is translated over? >> >> Would hate to have to iterate through the result and manually type any >> int fields... >> > |