Merge pull request #757 from citusdata/fix_MultiClientQueryResult

Return false in MultiClientQueryResult() on failing query
pull/707/head
Metin Döşlü 2016-08-29 17:44:58 +03:00 committed by GitHub
commit adf992324a
3 changed files with 37 additions and 0 deletions

View File

@ -469,6 +469,8 @@ MultiClientQueryResult(int32 connectionId, void **queryResult, int *rowCount,
{
WarnRemoteError(connection, result);
PQclear(result);
return false;
}
/* clear extra result objects */

View File

@ -523,3 +523,18 @@ COPY super_packed_numbers_append FROM '/tmp/copy_test_composite_of_composite';
-- Verify data is actually copied
SELECT * FROM super_packed_numbers_append;
-- Test copy on append for composite type partition column
CREATE TABLE composite_partition_column_table(
id integer,
composite_column number_pack
);
SELECT master_create_distributed_table('composite_partition_column_table', 'composite_column', 'append');
\COPY composite_partition_column_table FROM STDIN WITH (FORMAT 'csv');
1,"(1,1)"
2,"(2,2)"
\.

View File

@ -687,3 +687,23 @@ SELECT * FROM super_packed_numbers_append;
1 | ("(42,42)","(42,42)")
(1 row)
-- Test copy on append for composite type partition column
CREATE TABLE composite_partition_column_table(
id integer,
composite_column number_pack
);
SELECT master_create_distributed_table('composite_partition_column_table', 'composite_column', 'append');
master_create_distributed_table
---------------------------------
(1 row)
\COPY composite_partition_column_table FROM STDIN WITH (FORMAT 'csv');
WARNING: function min(number_pack) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: while executing command on localhost:57637
WARNING: function min(number_pack) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CONTEXT: while executing command on localhost:57638
WARNING: could not get statistics for shard public.composite_partition_column_table_560164
DETAIL: Setting shard statistics to NULL