pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
longchar data type??
4+ messages / 3 participants
[nested] [flat]

* longchar data type??
@ 2006-01-20 00:07 Ben Davis <bendavis78@gmail.com>
  2006-01-20 00:20 ` Re: longchar data type?? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Ben Davis @ 2006-01-20 00:07 UTC (permalink / raw)
  To: pgsql-odbc

Hi all.  I'm desparately trying to get Microsoft Project to connect to work
with my postgresql server via ODBC.  For some reason,  MS Project tries to
create a column with the datatype  "longchar"  when it should be
"longvarchar".   Is it possible to tweak the psqlodbc source code so that it
will accept the "longchar" type and convert it to "text" ??   I'd be happy
to write a patch if someone can point me in the right direction...

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: longchar data type??
  2006-01-20 00:07 longchar data type?? Ben Davis <bendavis78@gmail.com>
@ 2006-01-20 00:20 ` Tom Lane <tgl@sss.pgh.pa.us>
  2006-01-20 11:23   ` Re: longchar data type?? Ludek Finstrle <luf@pzkagis.cz>
  2006-01-20 13:58   ` Re: longchar data type?? Ben Davis <bendavis78@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2006-01-20 00:20 UTC (permalink / raw)
  To: Ben Davis <bendavis78@gmail.com>; +Cc: pgsql-odbc

Ben Davis <bendavis78@gmail.com> writes:
> Hi all.  I'm desparately trying to get Microsoft Project to connect to work
> with my postgresql server via ODBC.  For some reason,  MS Project tries to
> create a column with the datatype  "longchar"  when it should be
> "longvarchar".   Is it possible to tweak the psqlodbc source code so that it
> will accept the "longchar" type and convert it to "text" ??   I'd be happy
> to write a patch if someone can point me in the right direction...

Seems like it might work to just go

	CREATE DOMAIN longchar AS text;


			regards, tom lane



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: longchar data type??
  2006-01-20 00:07 longchar data type?? Ben Davis <bendavis78@gmail.com>
  2006-01-20 00:20 ` Re: longchar data type?? Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-01-20 11:23   ` Ludek Finstrle <luf@pzkagis.cz>
  1 sibling, 0 replies; 4+ messages in thread

From: Ludek Finstrle @ 2006-01-20 11:23 UTC (permalink / raw)
  To: pgsql-odbc

Thu, Jan 19, 2006 at 07:20:17PM -0500, Tom Lane napsal(a):
> Ben Davis <bendavis78@gmail.com> writes:
> > Hi all.  I'm desparately trying to get Microsoft Project to connect to work
> > with my postgresql server via ODBC.  For some reason,  MS Project tries to
> > create a column with the datatype  "longchar"  when it should be
> > "longvarchar".   Is it possible to tweak the psqlodbc source code so that it
> > will accept the "longchar" type and convert it to "text" ??   I'd be happy
> > to write a patch if someone can point me in the right direction...
> 
> Seems like it might work to just go
> 
> 	CREATE DOMAIN longchar AS text;

Hello,

  it's backend related. We don't support renaming of type, column, table
or something. ODBC doesn't do such statement parsing to know what is what.
And as Tom pointed it would be so easy in PgSQL ;-)

Regards,

Luf



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: longchar data type??
  2006-01-20 00:07 longchar data type?? Ben Davis <bendavis78@gmail.com>
  2006-01-20 00:20 ` Re: longchar data type?? Tom Lane <tgl@sss.pgh.pa.us>
@ 2006-01-20 13:58   ` Ben Davis <bendavis78@gmail.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Ben Davis @ 2006-01-20 13:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-odbc

Great!  I'm all for an easier solution :-)

On 1/19/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Ben Davis <bendavis78@gmail.com> writes:
> > Hi all.  I'm desparately trying to get Microsoft Project to connect to
> work
> > with my postgresql server via ODBC.  For some reason,  MS Project tries
> to
> > create a column with the datatype  "longchar"  when it should be
> > "longvarchar".   Is it possible to tweak the psqlodbc source code so
> that it
> > will accept the "longchar" type and convert it to "text" ??   I'd be
> happy
> > to write a patch if someone can point me in the right direction...
>
> Seems like it might work to just go
>
>         CREATE DOMAIN longchar AS text;
>
>
>                         regards, tom lane
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2006-01-20 13:58 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20 00:07 longchar data type?? Ben Davis <bendavis78@gmail.com>
2006-01-20 00:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2006-01-20 11:23   ` Ludek Finstrle <luf@pzkagis.cz>
2006-01-20 13:58   ` Ben Davis <bendavis78@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox