Skip to content

Commit 7c9b60d

Browse files
committed
Update database_postgresql.c
1 parent 4195e48 commit 7c9b60d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/postgresql/database_postgresql.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ int database_select3_values (cloudsync_context *data, const char *sql, char **va
414414
goto cleanup;
415415
}
416416
if (SPI_tuptable->tupdesc->natts < 3) {
417-
return cloudsync_set_error(data, "Result has fewer than 3 columns in database_select3_values", DBRES_ERROR);
418417
rc = cloudsync_set_error(data, "Result has fewer than 3 columns in database_select3_values", DBRES_ERROR);;
419418
goto cleanup;
420419
}
@@ -603,7 +602,6 @@ int database_exec_callback (cloudsync_context *data, const char *sql, int (*call
603602

604603
// Allocate arrays for column names and values
605604
char **names = cloudsync_memory_alloc(ncols * sizeof(char*));
606-
if (!names) return DBRES_NOMEM;
607605
if (!names) {
608606
if (SPI_tuptable) SPI_freetuptable(SPI_tuptable);
609607
return DBRES_NOMEM;

0 commit comments

Comments
 (0)