I ended up using array_to_string(), which gave me a comma delimited string,
which works out great.
On Mon, Mar 14, 2011 at 8:51 PM, Robert Manning
<rob...@gm...>wrote:
> Type 2003 is an "ARRAY" type:
>
>
> /**
> * The constant in the Java programming language, sometimes referred to
> * as a type code, that identifies the generic SQL type
> * <code>ARRAY</code>.
> * @since 1.2
> */
> public final static int ARRAY = 2003;
>
> There is currently no DataTypeComponent for "array" types (Object Tree),
> and no support in ResultSetReader for "array" types as well (SQL ResultSet
> Panel). You could add a custom data type for Postgres to populate the
> contents tab in the object tree. However, we need to add support in
> ResultSetReader as this is not currently plugin-accessible. You could
> submit a feature request. Patches are also welcome.
>
> Rob
>
> On Mon, Mar 14, 2011 at 10:05 PM, Adam Winn <win...@gm...> wrote:
>
>> I'm running a query against Greenplum, which is a postgres-based RDBMS.
>> The
>> below query works fine run via psql and pgAdmin3, but when run in SQuirrel
>> SQL, the value for file_location is "<Unknown(2,003)>" and not the real
>> value of
>> "{file://hostname/home/gpadmin/daily_feed/mstr/2run_dim_merchant.dat}".
>>
>> SQuirreL SQL shows the getColumnTypeName as "_text" and the
>> getColumnClassName as "java.sql.Array". pgAdmin3 says the file_location
>> type is "text[]".
>>
>> Do you know why SQuirreL SQL gives the value of "<Unknown(2,003)>"?
>> Thanks!
>>
>> adam=# SELECT
>> ext.location as file_location,
>> ext.fmtopts as options,
>> ext.command as command,
>> ext.rejectlimit as reject_limit,
>> ext.rejectlimittype as reject_limit_type,
>> ext.fmterrtbl as error_table
>> FROM pg_class c
>> LEFT OUTER JOIN pg_namespace nspace ON (nspace.oid=c.relnamespace)
>> LEFT OUTER JOIN pg_exttable ext ON (ext.reloid=c.oid)
>> LEFT OUTER JOIN pg_authid auth ON (auth.oid=c.relowner)
>> WHERE
>> (c.relkind = 'x' OR (c.relkind = 'r' AND c.relstorage = 'x'))
>> AND nspname = 'public';
>>
>>
>> Native Greenplum (postgres-based). Run via psql on the command line and
>> with pgAdmin3:
>> file_location
>> | options | command |
>> reject_limit | reject_limit_type | error_table
>>
>> ------------------------------------------------------------------+----------------------------------+---------+--------------+-------------------+-------------
>> {file://hostname/home/gpadmin/daily_feed/mstr/2run_dim_merchant.dat} |
>> delimiter '|' null '' escape '\' | | |
>> |
>> {file://hostname/home/gpadmin/daily_feed/mstr/2run_dim_merchant.dat} |
>> delimiter '|' null '' escape '\' | | |
>> |
>> (2 rows)
>>
>> Time: 12.716 ms
>>
>> SQuirreL SQL:
>> file_location options command reject_limit reject_limit_type
>> error_table
>> <Unknown(2,003)> delimiter '|' null '' escape '\' <null> <null>
>> <null> <null>
>> <Unknown(2,003)> delimiter '|' null '' escape '\' <null> <null>
>> <null> <null>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> Squirrel-sql-develop mailing list
>> Squ...@li...
>> https://lists.sourceforge.net/lists/listinfo/squirrel-sql-develop
>>
>
>
|