For problems and solutions related to database compatibility.

Drupal Port to Ingres 2006

I've started working on a port of Drupal 4.7 to use an Ingres database (recently released as Open Source by the Ingres Corp.).

I've been successful in creating the core database and have created a new database.ingres.inc file.

I've built and tested the php ingres driver.

My problem now is that when I point a site to the ingres database, I get a segmentation fault from apache. The same site using a mysql database works just fine. I'm at a loss as to how to move forward. Any assistance would be appreciated!

Views module and Postgres. howto.

The following works and tested under the 4.6 version of the module.
Changes:
Line 1712 of views.module
Original: $k[] = "`" . db_escape_string($key) . "`";
Mod: $k[] = $key;

The original code escapes and encloses the database fields in ` ` which postgres does not like.

and a views.pgsql file to insert the tables:

-- START

create table view_view (
vid SERIAL,
name varchar(32) NOT NULL UNIQUE,
description varchar(255),
title varchar(255),
header text,
header_format integer NOT NULL,
use_pager smallint,
nodes_per_page smallint, -- yes, no more than 99
nodes_per_block smallint, -- yes, no more than 99
block_display_header smallint,
type integer,
block smallint,
url integer,
sql text,
countsql text,
changed integer,
PRIMARY KEY (vid)
);

CREATE INDEX view_view_name_idx ON view_view(name);

create table view_sort (
vid integer NOT NULL default '0',
position smallint,
field varchar(255),
sortorder varchar(5),
tablename varchar(255)
);
CREATE INDEX view_sort_vid_idx ON view_sort(vid);

create table view_argument (
vid integer NOT NULL default '0',
type varchar(25),
argdefault varchar(255),
position smallint
);
CREATE INDEX view_argument_vid_idx ON view_argument(vid);

create table view_tablefield (
vid integer NOT NULL default '0',
tablename varchar(255),
field varchar(255),

Fatal error

Hi All,

when i try to edit any page or any other entry it returns with error msg that duplicate entry for key '1' although the action will be performed successfully.

pg_query(): Query failed: ERROR: invalid input syntax for integer:......

I have this error when post new blog or page or story entry with a privilege user

warning: pg_query(): Query failed: ERROR: invalid input syntax for integer: "" in /usr/local/apache/htdocs/www.psql.it/drupal/includes/database.pgsql.inc on line 45.

error message in 4.7 after installing on subdomain

my Local host install works fine. I uploaded all files to the subdomain, exported my local database with data (mysql 4 compatibility from mysql 5) then imported the data to the subdomain on the server. It's a test to see if I can fully design the site then upload all including database to my server. This may be a database compatibility problem (my error), my local host mysql version is 5.0.15 and the host version is 4.1.10a. All seems to work except when I log in/log out I get this message and can't move further:

Warning: Duplicate entry '0' for key 1 query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Duplicate entry '0' for key 1\nquery: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'access denied', '<em>logout</em> denied access.', 1, '<a href=\\"/?q=logout\\" class=\\"active\\">view</a>', '/?q=logout&destination=logout', 'http://subdomain.com/?q=logout', 'ip address here', 1142978935) in folderpath/includes/database.mysql.inc on line 120.', 2, '', '/?q=logout&destination=logout', 'http://subdomain.com/?q=logout', 'ip address here', 1142978935) in folderpath/includes/database.mysql.inc on line 120

Maybe I exported the mysql v 5 version improperly to import into mysql 4 schema.

Need advice on MySQL data manipulation

Using MySQL as database.

I'd like to directly modify the 'locales_target' table. Unfortunately, the tool I use can't edit blobs.

Could it be possible to export the table data to another one which has a 'translation' column defined as 'string', do my work on the second table, then import back the data to the 'locales_target' table ?

TIA

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Database compatibility