Thanks, Matthew. I'll have our local expert help me put that in place.
Pablo Melendez | Data Engineer | pmelendez@... | demandbase | 415.683.2940
-----Original Message-----
From: Matthew Dahlman [mailto:mdahlman@...]
Sent: Friday, May 14, 2010 1:17 PM
To: Pablo Melendez; 'John Hardin'
Cc: squirrel-sql-users@...
Subject: RE: [Squirrel-sql-users] column alias not exporting
Pablo,
MySQL accepts AS, but I expect that it will not change your results at
all.
It's probably due to MySQL's implementation of getColumnName() and
getColumnLabel().
Google up those terms and you'll find the relevant MySQL bugs. The result
is highly dependant on the exact version of the MySQL JDBC driver that you
use. Its implementation of getColumnName has gone back and forth between
using the column name or the alias multiple times.
Probably what you need is to use "useOldAliasMetadataBehavior" in the url
properties. That's likely to make everything return to what you're
expecting.
Regards,
Matt
Jaspersoft
-----Original Message-----
From: Pablo Melendez [mailto:PMelendez@...]
Sent: Friday, 14 May, 2010 10:09
To: John Hardin
Cc: squirrel-sql-users@...
Subject: Re: [Squirrel-sql-users] column alias not exporting
Using a MySQL server.
I don't use AS. I'm not sure if AS is a reserved word in MySQL. I'll try
that.
The syntax I use would be
SELECT company_name 'Company Name' FROM s.t
Thank you.
Pablo Melendez | Data Engineer | pmelendez@... |
demandbase | 415.683.2940
-----Original Message-----
From: John Hardin [mailto:jhardin@...]
Sent: Thursday, May 13, 2010 8:38 PM
To: Pablo Melendez
Cc: squirrel-sql-users@...
Subject: Re: [Squirrel-sql-users] column alias not exporting
On Thu, 13 May 2010, Pablo Melendez wrote:
> I am using version 3.1.1 for Windows. Ever since I applied the latest
> upgrades, Squirrel will export datasets only with the table column
> names and not with the column aliases I have assigned. I might have
> relabeled a column to 'Company Name' but the column header that is
> exported is always the field name or 'company_name' in this example.
What database server?
How exactly are you aliasing the columns? Standard "x AS y" syntax? If so,
that's amazing, as the database engine should be providing the aliased
column names and Squirrel should not even be aware of the base column
name...
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@... FALaholic #11174 pgpk -a jhardin@...
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Win95: Where do you want to go today?
Vista: Where will Microsoft allow you to go today?
-----------------------------------------------------------------------
5 days since a sunspot last seen - EPA blames CO2 emissions
--------------------------------------------------------------------------
----
_______________________________________________
Squirrel-sql-users mailing list
Squirrel-sql-users@...
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users
|