Changeset: d63f9b43b964 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d63f9b43b964
Modified Files:
monetdb5/extras/pyapi/pyloader.c
Branch: pythonloader
Log Message:
Fix warning message.
diffs (28 lines):
diff --git a/monetdb5/extras/pyapi/pyloader.c b/monetdb5/extras/pyapi/pyloader.c
--- a/monetdb5/extras/pyapi/pyloader.c
+++ b/monetdb5/extras/pyapi/pyloader.c
@@ -42,15 +42,12 @@ str PyAPIevalLoader(Client cntxt, MalBlk
PyObject *pArgs = NULL, *pEmit = NULL, *pConnection; // this is going to
be the parameter tuple
PyObject *code_object = NULL;
EmitCol *cols = NULL;
- bit varres;
- int retcols;
bool gstate = 0;
int unnamedArgs = 0;
int argcount = pci->argc;
char * loader_additional_args[] = {"_emit", "_conn"};
-
if (!PyAPIEnabled()) {
throw(MAL, "pyapi.eval",
"Embedded Python has not been enabled. Start server with --set
%s=true",
@@ -64,8 +61,6 @@ str PyAPIevalLoader(Client cntxt, MalBlk
sqlmorefun = *(sql_subfunc**) getArgReference(stk, pci, pci->retc);
sqlfun = sqlmorefun->func;
exprStr = *getArgReference_str(stk, pci, pci->retc + 1);
- varres = sqlfun ? sqlfun->varres : 0;
- retcols = !varres ? pci->retc : -1;
args = (str*) GDKzalloc(pci->argc * sizeof(str));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list