For problems and solutions related to database compatibility.

Every time I delete a user - I get an error message

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE uid = 97' at line 1 query: DELETE FROM profile_privacy_values ppv WHERE uid = 97 in /home/ctestqua/public_html/includes/database.mysql.inc on line 172.

What do I do?

Unsupported database type when 'www' prefix not included in URL

I have soft launched a site that works fine when the full URLs (http://www.solarheadlines.com) are used. But, when using an abbreviated URL (http://solarheadlines.com), the site throws up an 'Unsupported database type' error.

Thank you in advance for any assistance.

Perplexed

Purpose of Sequence table in Mysql?

I have looked for threads that have discussed what the purpose of the "sequence" table is in a mysql environment but havent been able to find any which was really surprising. I'd think this issue would be a hot topic. I've had multiple problems when importing things as nodes into a drupal DB such as a bunch of text articles and every time I always have to update the sequence table with whatever ID auto_increment gives me. Since mysql keeps track of the ID's, isnt this a pretty redundant table and un-needed?

Delete Block Glitch (with bad code)

I got a drupal 4.7.11 ( according to the /modules/system.module )

I created a block

the Block description: Access Sacramento
The Block title: Access Sacramento

inside the block I pasted (in a real hurried rush)...


WHoopsie...

Adding PostrgeSQL schema to Drupal

Dear friends,

I am a newcomer on Drupal mailing list
and I would like to thank you all for developing this great tool.

I would like to integrate Drupal with existing web services.
Our database is running PostgreSQL 8.2+

PostgreSQL has a neat feature called schema.
A schema is some kind of logical partition in a database.
It is a more powerfull feature than table_prefix as it is more general and built-in.

In database.pgsql.inc, here is what I modified:

  if (isset($url['port'])) {
    $conn_string .= ' port='. urldecode($url['port']);
  }
   $schema='';
  if (isset($url['schema'])) {
    $schema .= urldecode($url['schema']);
  }

  // pg_last_error() does not return a useful error message for database
  // connection errors. We must turn on error tracking to get at a good error
  // message, which will be stored in $php_errormsg.
  $track_errors_previous = ini_get('track_errors');
  ini_set('track_errors', 1);
  //$schema='drupal';
  if ($schema !== '')
  {
    @pg_query($this->db_connect_id, 'SET search_path TO ' . $schema);
  }

  $connection = @pg_connect($conn_string);
  if (!$connection) {
    require_once './includes/unicode.inc';
    _db_error_page(decode_entities($php_errormsg));
  }

I think it is a valuable addition, as it has zero impact on the existing code.

Running Drupal using different database servers.

Hi,

I am a new Drupal user and I am attempting to run Drupal using a database server besides mysql or pgsql. I am currently running Windows XP, Apache 2.2, PHP 5.2.5, and mysql 5.0. I want to be able to swap mysql out and use any other database server.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility