 		}
 		if (p->WritableSchema)
 		{
-			_fprintf(p->Out, "PRAGMA writable_schema=OFF;\n");
+			_fprintf(p->D_Out, "PRAGMA writable_schema=OFF;\n");
 			p->WritableSchema = 0;
 		}
 		DataEx::Exec(p->Ctx, "PRAGMA writable_schema=OFF;", 0, 0, 0);
 		DataEx::Exec(p->Ctx, "RELEASE dump;", 0, 0, 0);
-		_fprintf(p->Out, (p->Errs ? "ROLLBACK; -- due to errors\n" : "COMMIT;\n"));
+		_fprintf(p->D_Out, (p->Errs ? "ROLLBACK; -- due to errors\n" : "COMMIT;\n"));
 	}
 #pragma endregion
 #pragma region .import

#if __CUDACC__
			char w_;
			if (_strlen(colValues[i]) > w) { w_ = colValues[i][w]; colValues[i][w] = 0; } else w_ = 0;
			_fprintf(p->Out, "%-*s%s", w, (colValues[i] ? colValues[i] : p->NullValue), (i == colLength-1 ? "\n" : "  "));
			if (w_) colValues[i][w] = w_;
#else
			_fprintf(p->Out, "%-*.*s%s", w, w, (colValues[i] ? colValues[i] : p->NullValue), (i == colLength-1 ? "\n" : "  "));
#endif
		}
		break; }

	{
		if (firstRow)
		{
			_fprintf(p->D_Out, "%s", firstRow);
			firstRow = nullptr;
		}
		const char *z = (const char *)Vdbe::Column_Text(select, 0);
		_fprintf(p->D_Out, "%s", z);
		for (i = 1; i < results; i++)
			_fprintf(p->D_Out, ",%s", Vdbe::Column_Text(select, i));
		if (!z) z = "";
		while (z[0] && (z[0] != '-' || z[1] != '-')) z++;
		if (z[0]) _fprintf(p->D_Out, "\n;\n");
		else _fprintf(p->D_Out, ";\n");
		rc = select->Step();
	}
	rc = Vdbe::Finalize(select);
	if (rc != RC_OK)
	{
		_fprintf(p->D_Out, "/**** ERROR: (%d) %s *****/\n", rc, DataEx::ErrMsg(p->Ctx));
		p->Errs++;
	}
	return rc;
