* Copyright 2009, Roland Mas
* Copyright (c) 2011, 2012
* Thorsten Glaser <t.glaser@tarent.de>
+ * Copyright 2013, Franck Villaume - TrivialDev
*
* This file is part of FusionForge. FusionForge is free software;
* you can redistribute it and/or modify it under the terms of the
return @pg_fetch_result($qhandle, $row, $field);
}
+/**
+ * db_result_seek() - Sets cursor location in a result set.
+ *
+ * @param int Query result set handle.
+ * @param integer Row number.
+ * @return boolean True on success
+ */
+function db_result_seek($qhandle,$row) {
+ return @pg_result_seek($qhandle,$row);
+}
+
+/**
+ * db_result_reset() - Resets cursor location in a result set.
+ *
+ * @param int Query result set handle.
+ * @return boolean True on success
+ */
+ //TODO : remove the second param if no one use it.
+function db_result_reset($qhandle,$row = 0) {
+ return db_result_seek($qhandle,0);
+}
+
/**
* db_numfields() - Returns the number of fields in this result set.
*