R53374 - /trunk/phpgwapi/inc/class.egw_db.inc.php

Author: ralfbecker
New Revision: 53374

URL: http://svn.stylite.de/viewvc/egroupware?rev=53374&view=rev
Log:

  • PostgreSQL/Filemanager: fix SQL error while downloading files with long name (probably other cases too)

Modified:
trunk/phpgwapi/inc/class.egw_db.inc.php

Modified: trunk/phpgwapi/inc/class.egw_db.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.egw_db.inc.php?rev=53374&r1=53373&r2=53374&view=diff

— trunk/phpgwapi/inc/class.egw_db.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_db.inc.php Thu Aug 13 14:47:52 2015
@@ -787,6 +787,7 @@
"\n$this->Error ($this->Errno)".
($inputarr ? “\nParameters: '”.implode("’,’",$inputarr)."’":’’), $this->Errno);
}

  •   elseif(empty($this->Query_ID->sql)) $this->Query_ID->sql = $Query_String;
      return $this->Query_ID;
    
    }

@@ -1650,7 +1651,7 @@

			if ($truncate_varchar)
			{
  •   			$maxlength = $column_definitions[$col]['type'] == 'varchar' ? $column_definitions[$col]['precision'] : null;
    
  •   			$maxlength = in_array($column_definitions[$col]['type'], array('varchar','ascii')) ? $column_definitions[$col]['precision'] : null;
      		}
      		// dont use IN ( ), if there's only one value, it's slower for MySQL
      		if (is_array($data) && count($data) == 1)
    


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs