Part of the EllisLab Network
   
 
postgre driver
Posted: 26 January 2008 12:01 PM   [ Ignore ]  
Summer Student
Total Posts:  18
Joined  10-07-2007

postgre_driver.php

function _protect_identifiers($item, $first_word_only = FALSE)
[..]
  
else
  
{
    
return ""{$item}"";
    
//-> return "`{$item}`";
  
}

  $exceptions
= array('AS', '/', '-', '%', '+', '*');
        
  foreach (
$exceptions as $exception)
  
{
        
    
if (stristr($item, " "{$exception}" ") !== FALSE)
    
//-> if (stristr($item, " `{$exception}` ") !== FALSE)
    
{
Profile
 
 
Posted: 26 January 2008 01:50 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

What are you demonstrating?  Which version?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
Posted: 26 January 2008 02:25 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  737
Joined  10-18-2006

He is right… Current SVN version, in database/drivers/postgre/postgre_driver.php
There are parse errors on lines 454 and 462.

 Signature 

Once in a while I remember I use Twitter

Profile
 
 
Posted: 26 January 2008 02:32 PM   [ Ignore ]   [ # 3 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  7337
Joined  03-23-2006

I see.  Could you try now?

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design
BambooInvoice - Open Source, CodeIgniter powered invoicing.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 120509 Total Logged-in Users: 31
Total Topics: 126576 Total Anonymous Users: 6
Total Replies: 665464 Total Guests: 376
Total Posts: 792040    
Members ( View Memberlist )