How to make a portable application?

From: "Bob Hobart" <bhobart(at)1stbyte(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: How to make a portable application?
Date: 2004-07-01 18:11:13
Message-ID: AF4512A05BA7554E8CEB829F795DCEC120DD@dib.1stByte.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I am sure that this is way too broad of a question to ask here, but
heck, if anyone has any thoughts it would be helpful.

I wonder, how do you make a truly portable sql application? You see
apps out there that can run on just about any SQL server. I have always
wondered how they can do that? I mean, I have run into so many problems
just moving the simplest things from one system to the next, from Linux
to Windows, from Mysql to Postgres, MSSQL to MySQL, whatever.

The reason I ask is this, because when you go from Postgres to say
Firebird, you have all your column or tables names in lowercase. Now
that can probably just move right into Firebird if the datatypes are all
setup right, but then all the names will be in UPPERCASE. Now your
client app has a problem, wrong case.

So how do they do it? Just enclose everything (all table and column
names) in double-quotes? Do all SQL servers support that?

FYI: My client app is Zope. Which, as I write this, is occurring to me
that IT may be my problem. (Python code is case-sensitive)

I am really thinking out loud here, so dont feel like you need to reply.
But, having any thought from you more experienced developers is always
helpful.

Thanks.

Browse pgsql-sql by date

  From Date Subject
Next Message ctrl 2004-07-02 03:42:04 best method to copy data across databases
Previous Message Jeff Boes 2004-07-01 15:02:25 Re: FW: "=" operator vs. "IS"