[packages/php-propel] - rel 11; escape table names, patch by Przemysław Plewa
arekm
arekm at pld-linux.org
Wed May 30 14:37:11 CEST 2018
commit babb8a1b10c09ff1e34c2c3ac3a727ca058a9310
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed May 30 14:37:04 2018 +0200
- rel 11; escape table names, patch by Przemysław Plewa
escape.patch | 18 ++++++++++++++++++
php-propel.spec | 4 +++-
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/php-propel.spec b/php-propel.spec
index ed29a05..22846a9 100644
--- a/php-propel.spec
+++ b/php-propel.spec
@@ -4,13 +4,14 @@ Summary: Object persistence and query service for PHP5
Summary(pl.UTF-8): Usługa przechowywania i odpytywania obiektów dla PHP5
Name: php-%{pkgname}
Version: 1.4.2
-Release: 10
+Release: 11
License: LGPL v3
Group: Development/Languages/PHP
Source0: http://files.propelorm.org/%{pkgname}-%{version}.tar.gz
# Source0-md5: 37d0c260bac544d59308e40d4b67026c
Patch0: phing-classpath.patch
Patch1: mysql-type-deprecation.patch
+Patch2: escape.patch
URL: http://trac.propelorm.org/wiki/Documentation/1.4
BuildRequires: rpmbuild(macros) >= 1.300
Requires: php(core) >= %{php_min_version}
@@ -58,6 +59,7 @@ Generator tworzący pliki definicji SQL (DDL).
%setup -q -n %{pkgname}-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
cat <<'EOF'> generator/pear/pear-propel-gen.sh
#!/bin/sh
exec phing -f %{php_data_dir}/data/propel_generator/pear-build.xml -Dproject.dir=$*
diff --git a/escape.patch b/escape.patch
new file mode 100644
index 0000000..418c425
--- /dev/null
+++ b/escape.patch
@@ -0,0 +1,18 @@
+--- a/runtime/classes/propel/util/BasePeer.php 2018-05-30 14:27:10.799698441 +0200
++++ b/runtime/classes/propel/util/BasePeer.php 2018-05-30 14:27:38.903159425 +0200
+@@ -353,8 +353,13 @@
+
+ $stmt = null;
+ try {
+-
+- $sql = "UPDATE " . $tableName . " SET ";
++ $sql = "UPDATE ";
++ if ($db->useQuoteIdentifier()) {
++ $sql .= $db->quoteIdentifierTable($tableName);
++ } else {
++ $sql .= $tableName;
++ }
++ $sql .= " SET ";
+ $p = 1;
+ foreach ($updateTablesColumns[$tableName] as $col) {
+ $updateColumnName = substr($col, strrpos($col, '.') + 1);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-propel.git/commitdiff/babb8a1b10c09ff1e34c2c3ac3a727ca058a9310
More information about the pld-cvs-commit
mailing list