Incorrect use of " in sql query

nbulat - February 28, 2007 - 14:13
Project:DruTeX
Version:HEAD
Component:Code
Category:bug report
Priority:critical
Assigned:Steven Jones
Status:closed
Description

Can't configure drutex input format. I'm getting folowing error message:

warning: pg_query() [function.pg-query]: Query failed: ERROR: column "drutex" does not exist in /var/www/localhost/htdocs/includes/database.pgsql.inc on line 125.

Apparently, column drutex is missing from database, but nothing is mentioned about database in the installation instructions.

#1

Steven Jones - August 28, 2007 - 06:03
Title:DruTeX with postgresql malfunction» Add Postgres support at install time
Category:support request» feature request
Assigned to:nbulat» Steven Jones

I don't think that DruTeX has the Postgres create table statements in it's install file. I will look at adding this.

#2

Gertje - September 6, 2007 - 13:01

I wasn't even able to find an .install file...

#3

Gertje - September 8, 2007 - 11:10

I figured it out..
The in select statement on line 593 in drutex.module the double quotes on drutex isn't according to the SQL standard. MySQL doesn't matter though Postgres does... I simply changed it to:

$result = db_query('SELECT format from {filters} WHERE module = \'drutex\'');

Cheers

#4

Steven Jones - September 9, 2007 - 19:23
Title:Add Postgres support at install time» Incorrect use of " in sql query
Category:feature request» bug report
Priority:normal» critical
Status:active» fixed

Thank you.

#5

Anonymous - September 23, 2007 - 19:28
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.