[packages/php-symfony] rel 5; more (one is hardcoded because no access to adapter)

arekm arekm at pld-linux.org
Thu Oct 5 12:39:00 CEST 2023


commit 310ae712dae477f15d0057011bdc2d8aac4f75d4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 5 11:38:35 2023 +0200

    rel 5; more (one is hardcoded because no access to adapter)

 php-symfony.spec |  2 +-
 quote.patch      | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/php-symfony.spec b/php-symfony.spec
index cbb74a6..a886f2b 100644
--- a/php-symfony.spec
+++ b/php-symfony.spec
@@ -8,7 +8,7 @@ Summary:	Open-source PHP web framework
 Summary(pl.UTF-8):	Szkielet aplikacji WWW w PHP o otwartych źródłach
 Name:		php-%{pkgname}
 Version:	1.4.20
-Release:	4
+Release:	5
 License:	various free licenses (distributable)
 Group:		Development/Languages/PHP
 Source0:	http://www.symfony-project.org/get/symfony-%{version}.tgz
diff --git a/quote.patch b/quote.patch
index 4be13a2..56c9d5d 100644
--- a/quote.patch
+++ b/quote.patch
@@ -15,6 +15,32 @@
  				$stmt = $con->prepare($sql);
  				self::populateStmtValues($stmt, $selectParams, $dbMap, $db);
  				$stmt->execute();
+@@ -192,7 +198,7 @@
+ 	public static function doDeleteAll($tableName, PropelPDO $con)
+ 	{
+ 		try {
+-			$sql = "DELETE FROM " . $tableName;
++			$sql = "DELETE FROM `" . $tableName."`";
+ 			$stmt = $con->prepare($sql);
+ 			$stmt->execute();
+ 			return $stmt->rowCount();
+@@ -279,9 +285,13 @@
+ 			if ($adapter->useQuoteIdentifier()) {
+ 				$columns = array_map(array($adapter, 'quoteIdentifier'), $columns);
+ 			}
+-
+-			$sql = 'INSERT INTO ' . $tableName
+-			. ' (' . implode(',', $columns) . ')'
++			$sql = 'INSERT INTO ';
++			if ($adapter->useQuoteIdentifier()) {
++				$sql .= $adapter->quoteIdentifier($tableName);
++			} else {
++				$sql .= $tableName;
++			}
++			$sql .= ' (' . implode(',', $columns) . ')'
+ 			. ' VALUES (';
+ 			// . substr(str_repeat("?,", count($columns)), 0, -1) . 
+ 			for($p=1, $cnt=count($columns); $p <= $cnt; $p++) {
 @@ -353,8 +353,13 @@
  
  			$stmt = null;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-symfony.git/commitdiff/310ae712dae477f15d0057011bdc2d8aac4f75d4



More information about the pld-cvs-commit mailing list