Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21427

Modified Files:
        sql_result.mx 
Log Message:
Take a different line for non-file streams.


U sql_result.mx
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_result.mx,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- sql_result.mx       4 Aug 2009 17:58:08 -0000       1.117
+++ sql_result.mx       4 Aug 2009 21:41:55 -0000       1.118
@@ -494,6 +494,9 @@
                        fmt[i].size = ATOMsize(fmt[i].adt);
                }
                if (TABLETcreate_bats(&as, (BUN) (sz < 0 ? 1000 : sz)) >= 0) {
+                       if ( getFile(bs->s) == NULL)
+                               TABLETload_file(&as,bs,out);
+                       else
                        if (SQLload_file(&as, bs, out, sep, rsep, *ssep, sz, 
offset) != BUN_NONE)
                                bats = TABLETcollect_bats(&as);
                }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to