Changeset: 40ed165f38e3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=40ed165f38e3
Modified Files:
sql/src/backends/monet5/sql_scenario.mx
Branch: default
Log Message:
drop SQLinclude func, somehow missed this one yesterday
diffs (36 lines):
diff -r 9902f87f78e7 -r 40ed165f38e3 sql/src/backends/monet5/sql_scenario.mx
--- a/sql/src/backends/monet5/sql_scenario.mx Fri May 14 02:38:20 2010 +0200
+++ b/sql/src/backends/monet5/sql_scenario.mx Fri May 14 09:36:53 2010 +0200
@@ -755,32 +755,6 @@
*ret= _strdup("SQLcompile");
return msg;
}
-...@-
-Locate a file with SQL commands to execution.
-...@c
-str
-SQLinclude(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
-{
- stream *fd;
- bstream *bfd;
- str *name = (str *) getArgReference(stk,pci,1);
- str msg = MAL_SUCCEED;
- str *expr;
-
- fd = openSourceFile(*name);
- if (stream_errnr(fd) == OPEN_ERROR) {
- stream_destroy(fd);
- throw(MAL, "sql.include", "could not open file: %s\n", *name);
- }
- bfd = bstream_create(fd, 128 * BLOCK);
- if( bstream_next(bfd) < 0)
- throw(MAL,"sql.include","could not read %s\n", *name);
-
- expr = &bfd->buf;
- msg = SQLstatementIntern(cntxt, expr, "sql.include", TRUE, FALSE);
- (void) mb;
- return msg;
-}
@-
The SQL reader collects a (sequence) of statements from the input
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list