Explorar el Código

postgres fixes

Thomas Citharel hace 9 años
padre
commit
ae5a8572d5
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      app/Models/EntryDAO.php
  2. 1 1
      app/Models/FeedDAO.php

+ 1 - 1
app/Models/EntryDAO.php

@@ -649,7 +649,7 @@ class FreshRSS_EntryDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
 			$values[] = intval($id);
 			break;
 		case 'A':
-			$where .= '1 ';
+			$where .= '1=1 ';
 			break;
 		default:
 			throw new FreshRSS_EntriesGetter_Exception('Bad type in Entry->listByType: [' . $type . ']!');

+ 1 - 1
app/Models/FeedDAO.php

@@ -67,7 +67,7 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable {
 
 		$set = '';
 		foreach ($valuesTmp as $key => $v) {
-			$set .= $key . '=?, ';
+			$set .= '`' . $key . '`=?, ';
 
 			if ($key == 'httpAuth') {
 				$valuesTmp[$key] = base64_encode($v);