same thing with mysql as in last commit

This commit is contained in:
Miroslav Stampar 2011-01-05 14:41:38 +00:00
parent a136915ab6
commit 6942c9a001
5 changed files with 10 additions and 0 deletions

View File

@ -443,6 +443,8 @@ char* sys_eval(
result = (char *)malloc(1);
outlen = 0;
result[0] = (char)0;
pipe = popen(args->args[0], "r");
while (fgets(line, sizeof(line), pipe) != NULL) {

View File

@ -443,6 +443,8 @@ char* sys_eval(
result = (char *)malloc(1);
outlen = 0;
result[0] = (char)0;
pipe = popen(args->args[0], "r");
while (fgets(line, sizeof(line), pipe) != NULL) {

View File

@ -443,6 +443,8 @@ char* sys_eval(
result = (char *)malloc(1);
outlen = 0;
result[0] = (char)0;
pipe = popen(args->args[0], "r");
while (fgets(line, sizeof(line), pipe) != NULL) {

View File

@ -122,6 +122,8 @@ extern DLLIMPORT Datum sys_eval(PG_FUNCTION_ARGS) {
result = (char *)malloc(1);
outlen = 0;
result[0] = (char)0;
pipe = popen(command, "r");
while (fgets(line, sizeof(line), pipe) != NULL) {

View File

@ -443,6 +443,8 @@ char* sys_eval(
result = (char *)malloc(1);
outlen = 0;
result[0] = (char)0;
pipe = popen(args->args[0], "r");
while (fgets(line, sizeof(line), pipe) != NULL) {