From 38d32371c88825819f9cbaa31660cd1bedcb11ca Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 3 Mar 2015 12:09:25 +0100 Subject: [PATCH] Adds test to validate CDB_TableMetadataTouch usage with OID --- test/extension/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/extension/test.sh b/test/extension/test.sh index e4f27f6..7a6af4f 100755 --- a/test/extension/test.sh +++ b/test/extension/test.sh @@ -302,6 +302,10 @@ function test_cdb_tablemetadatatouch() { sql "SELECT CDB_TableMetadataTouch('\"public\".touch_example');" sql "SELECT CDB_TableMetadataTouch('\"public\".\"touch_example\"');" + # Works with OID + TABLE_OID=`${CMD} -U postgres ${DATABASE} -c "SELECT tableoid FROM pg_attribute WHERE attrelid = 'touch_example'::regclass limit 1;" -A -t` + sql "SELECT CDB_TableMetadataTouch('${TABLE_OID}');" + #### test tear down sql 'DROP TABLE touch_example;' }