For problems and solutions related to database compatibility.

User Fill out data.

How to create textbox for user fill out data and save the data to Database ?
please tell me too thank you so much.

from php2sql, any idea?

Hi all.
I have more than 20 content types CCK and I want install it on other site.
I choose CCK export + importexportapi modules. And I get more than 20 files with php code. So I must, in my other site(and sites), from cck import form install all content types from files. It's hard. But, when I install a content type, in my data base appear new tables and rows in some tables, so install/import it's just correct and right sql commands. So if it's just sql, I can maybe, create mymodule_name.install file and end? I think it's better then copy/paste from cck import form.

UNIQUE in term_data causes problems

Hi all,

I recently installed Drupal 6 RC1 to create a story website.
I love the changes that are made. Great thinking :)

However, when I started entering the terms, I stumpled upon a problem in the term_data table. There is a UNIQUE index on vid/name.
I tried to enter a structure as follows:

Need Postgres answer

I don't have Postgres and I'd like to make a change to a module that I support. For MySql, I know I can use "INSERT ... ON DUPLICATE KEY UPDATE ..." for part of my change and it will make the code so much simpler. (http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html)

Does Postgres support this syntax? How about all the other DBs that are being considered for Drupal?

Patch for Postgresql + ldap + taxonomy_access_control

Here is the changes I had to made to get Postgresql working with ldap and taxonomy access control

 file changed: sites/all/modules/ldap_integration/ldapdata.install

421c421
<   $field_to_select = 'DISTINCT ON ('. $table .'.'. $field .") $table.$field";
---
>   $field_to_select = 'DISTINCT '."$table.$field";

The fix above is not the best since it does not handle multiple fields. I guess I will patch it more if more problems pops up. This is going to be a pain to fix.

 file changed: includes/database.pgsql.inc

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility