View | Details | Raw Unified | Return to bug 259508 | Differences between
and this patch

Collapse All | Expand All

(-)eclipse.org-common/system/app.class.php (-2 / +3 lines)
Lines 970-977 Link Here
970
		} else { 				# For PRODUCTION machines
970
		} else { 				# For PRODUCTION machines
971
			$class = null;
971
			$class = null;
972
972
973
			if(strtoupper(substr(trim($query), 0, 6)) == 'SELECT') {  // Try to use read-only when possible
973
			if(strtoupper(substr(trim($query), 0, 6)) == 'SELECT' 
974
				$classfile = $this->get($key . '_db_classfile_ro');
974
			&& strtoupper(substr(trim($query), 0, 20)) != "SELECT HIGH_PRIORITY") {  // Try to use read-only when possible
975
							$classfile = $this->get($key . '_db_classfile_ro');
975
				$class = $this->get($key . '_db_class_ro');
976
				$class = $this->get($key . '_db_class_ro');
976
			}
977
			}
977
978

Return to bug 259508