db_select query against postgresql database

Hi to all,

I am trying to execute a postgresql query using db_select. The database is an external database (not the default drupal db). I am having the following problems with the query.

- In postgresql , tables with capital letters should be referred enclosed in double quotes(e.g. "MYTABLE")
- Also tables in lowercase letters are automatically enclosed in curly brackets when db_select is used.

I could use the db_query instead but i want to use pager also. Are there any alternatives or guidelines in order to solve or bypass these problems? Any help would be really appreciated.
Below you can have a look at my code

<?php
$query = db_select('monitors','m');
$query->fields('m',array('monitor_code','bpcode','gr_desc'));
$query->join("'FINAL_POINTS_WGS84'", 'm','m.bpcode = FINAL_POINTS_WGS84.bpcode');
$query->join( 'monitoring_2006','m' ,'m.monitor_code = monitoring_2006.monitor_code');
$query->join( 'monitoring_2007','m' ,'m.monitor_code = monitoring_2007.monitor_code');
$query->join( 'monitoring_2008', 'm','m.monitor_code = monitoring_2008.monitor_code');
$query->join( 'monitoring_2009','m' ,'m.monitor_code = monitoring_2009.monitor_code');
$query->join('monitoring_2010', 'm','m.monitor_code = monitoring_2010.monitor_code');
$query->addField('"FINAL_POINTS_WGS84"', 'bpname', 'bpname');
$query->addField('monitoring_2006', 'eval', 'ev2006');

HELP! HELP! Error when deleting fields killing cron

I get the following error when I delete fields. It also appears that cron isn't doing maintenance on the deleting fields from the database.

problem in newsletter module

I successfully installed the newsletter module in my drupal. But don't know how to display the subscriber form of my homepage for newsletter? From where the subscriber form can be displayed for my newsletter module?

Team / Group functionality

Hi there,
I am new to Drupal. And I am pretty impressed of the possibilities so far.

I work with Drupal 7 (I could also use Version 6, because my project is yet in the beginning).

My project is an "Idea Management Site", where Users should be able to create Teams of Users and work together on an idea, which is a content type.

Making terms as a list format

This is my layout http://www.gorgeoushentai.com/content/saber-marionette-j-2
If you look at the genres it shows them as a div class instead of li. how can I make it a list format?

Upload youtube video

Hi,
I want a module which "allows for the end user to upload video directly to YouTube, using a single account for the site". I know "video upload" but it doesn't work on Drupal 7 :(
The creator of this module says that "media" does it now on v7 but i really dont find the way to do it.

Do you know a module to do it or is there a tutorial to explain how to do it with "media" ?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x