From 69814150f762cf409b07620ef5ed97e5b5a9f9d0 Mon Sep 17 00:00:00 2001
From: "Stephen R. van den Berg" <srb@cuci.nl>
Date: Mon, 14 Jul 2008 13:36:00 +0200
Subject: [PATCH] streaming_query enabled for the old Sql.postgres driver

Rev: lib/modules/Sql.pmod/postgres.pike:1.34
---
 lib/modules/Sql.pmod/postgres.pike | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/lib/modules/Sql.pmod/postgres.pike b/lib/modules/Sql.pmod/postgres.pike
index 76b6401ef1..31517835e1 100644
--- a/lib/modules/Sql.pmod/postgres.pike
+++ b/lib/modules/Sql.pmod/postgres.pike
@@ -1,7 +1,7 @@
 /*
  * This is part of the Postgres module for Pike.
  *
- * $Id: postgres.pike,v 1.33 2008/07/12 11:17:16 srb Exp $
+ * $Id: postgres.pike,v 1.34 2008/07/14 11:36:00 srb Exp $
  *
  */
 
@@ -426,6 +426,17 @@ int|object big_query(object|string q, mapping(string|int:mixed)|void bindings)
   return ::big_query(q, paramValues);
 }
 
+//! This is an alias for @[big_query()], since @[big_query()] already supports
+//! streaming.
+//!
+//! @seealso
+//!   @[big_query], @[Sql.Sql], @[Sql.sql_result]
+int|object streaming_query(object|string q,
+ mapping(string|int:mixed)|void bindings)
+{
+  return big_query(q, bindings);
+}
+
 #else
 constant this_program_does_not_exist=1;
 #endif /* constant(Postgres.postgres) */
-- 
GitLab