For problems and solutions related to database compatibility.

Drupal database abstraction

I've read through many posts regarding Drupal support for various databases other than MySQL and PostGreSQL. There appears to be reasonable activity in regards to an Oracle port. I've read through some of the code in the CVS repository and it appears that there is some type of database abstraction layer in Drupal.

Is the database abstraction layer implemented well enough that it is practical to create interfaces for other databases?

It seems like PostgreSQL was added within the last year or so, but I picked up on some things from the Oracle port effort that made me think that there may be some serious problems with the current abstraction implementation that would require someone to touch a lot of the core Drupal codebase. Any comments from persons familiar with the code base or someone who worked on the PostgreSQL port would be appreciated.

Obviously, module developers are free to ignore the abstraction facilities. But, are there any similar problems with the core features of Drupal? I'm assuming that the code in the core Drupal system always observes the abstraction conventions, but I'd like confirmation of this from someone familiar with the code base to answer this question.

Here's a list of the source files that I'm aware of (after a quick look) that will need to be updated and or created to implement an additional interface for another database. Please let me know which files I've overlooked.

Upgrading from MySQL 3.23.58 to 4.1.21

Sorry for the second post, but I didn't see this Forum the first time and I posted it originally in "Support".

I'm trying to import a database from a server running MySQL 3.23.58 to a server running 4.1.21 - both Drupal 4.7. I've checked and both MySQL versions appear to be using Latin1 as the default character set. It appears as if the import works, but there are no tables in the new database on the new server. I tried this from both the command line and from phpMyAdmin....both with no luck.

Alternate DB Regression Testing

So there has been a post for the 'popular/standard' modules that are being ported to Drupal 5.0 and their status.

I was thinking, this list of modules is a great list to test alternate DB's with.
So we had a meeting this morning at my company, and we are planning on doing some regression testing across 3 DB platforms: Oracle, MS-SQL, MySQL.

db_next_id does not handle overflow

I just did a test and confirmed that if the 'id' column in the sequences table is set to 4294967295, then on the next db_next_id call the value will overflow back to 0. I'm using MySQL.

What can I do to avoid this situation? This seems like a DB issue more than anything. I'm guessing that you'd want to look for the lowest unused id. Since the ID field is indexed, this should be quick? How would one do this?

- Jared

PROBLAME IN FATCHING DATA FROM DATA BASE

Hi

all i am using this Query for fatching my data from my data base but it cant work will you please sugesst me where is the problame & what we are not doing please support me ASAP

How are dates stored in Drupal?

I cannot seem to find anywhere in the documentations that tells me how dates are stored in a mySQL database. I want to write an SQL query without using the API and need to know how to select and format dates.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility