private function fetch() {
var next : Dynamic = untyped __call__('db_fetch', this.result);
- this.nextValue = if(next) Just(next) else Nothing;
+ nextValue = if(next) Just(next) else Nothing;
}
public function hasNext() : Bool {
- return this.nextValue == Nothing;
+ return this.nextValue != Nothing;
}
public function next() : T {
}
class FA {
static public function query(sql: String) {
- var result = untyped __call__('db_query', sql);
+ var result = untyped __call__('db_query', sql, sql);
return new QueryIterator(result);
}
}
}
function formatRow(row) {
- php.Lib.print('<tr><td>helli</td></tr>');
+ var array = php.Lib.hashOfAssociativeArray(row);
+ php.Lib.print('<tr><td>'+array.get('stock_id')+'</td></tr>');
}