Out of curiosity, how hard would it be to build a translation layer?  I
suppose it's easier to keep both versions around, and upgrade when
necessary, but as a technical problem, it's at least interesting?  Only
downwardly, of course, so there would be no expectation that 2.X could use
3.X, just the reverse.  It had sounded as if only the file format was the
problem; is it more than that?  

I'm not pushing, in any sense, just wondering if anyone has looked at this
issue with an eye to resolving it.

--Keith

******************************************************
- I'm not a professional; I just get paid to do this.

- Rules for programming:
   1.  Get it working, right?
   2.  Get it working right.

- Things I've learned about multithreaded programming:

    123...   PPArrvooottieedcc ttm  ueelvvteeirrtyyhtt
rhheiianndgge  dwi hnpi rctohhg eri aslm omscitanalgt 
 iowcbh,je engceltvo ebwrah lip,co hso srci abonlt ehb
.ee^Nr waicscee snsoetd  'aotb jtehcet -slaomcea lt'il
m^Ne from two or more threads
******************************************************

-----Original Message-----
From: D. Richard Hipp [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 19, 2004 6:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [sqlite] PHP5 && SQLite3


julien wrote:
> I put this question because compatibility between SQLite2 and SQLite3 
> seems poor.
> 

Poor?  More like non-existent.  SQLite2 and SQLite3 have a very similar
design but both the interface and the underlying file format are quite
different and imcompatible.

Derrell Lipman wrote:
> 
> The plan _is_ to integrate SQLite3.  There are two of us who may 
> integrate it, depending on availability and need.  There's no schedule 
> for when it will be completed, but it is reasonably high on some of 
> our priority lists.
> 

SQLite3 is designed so that it can be statically linked into the same
executable as SQLite2.  One plan for PHP might be to link in both libraries.
When opening an existing database, check the header and use either the
SQLite2 or the SQLite3 library depending on what kind of database it is.
Create new databases as SQLite3.  The scripting interface would be the same
and the user would never know the difference.  In this way, you preserve
backwards compatibility with existing SQLite2 database files while at the
same time taking advantage of new SQLite3 features.

-- 
D. Richard Hipp -- [EMAIL PROTECTED] -- 704.948.4565

Reply via email to