Changeset 5641 for trunk/prototype/services/PostgreSQL.php
- Timestamp:
- 03/06/12 14:28:15 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/services/PostgreSQL.php
r5637 r5641 19 19 20 20 public function read ( $uri, $justthese = false , $criteria = false){ 21 21 22 22 $map = Config::get($uri['concept'], 'PostgreSQL.mapping'); 23 23 $justthese = self::parseJustthese($justthese, $map); 24 $criteria = ($criteria !== false) ? $this->parseCriteria ( $criteria , $map , ' WHERE id = \''.addslashes( $uri['id'] ).'\'') : ' ';25 24 $criteria = ($criteria !== false) ? $this->parseCriteria ( $criteria , $map , ' WHERE id = \''.addslashes( $uri['id'] ).'\'') : ' WHERE id = \''.addslashes( $uri['id'] ).'\''; 25 26 26 return $this->execResultSql( 'SELECT '.$justthese['select'].' FROM '. (Config::get($uri['concept'],'PostgreSQL.concept')) .$criteria , true ); 27 27 }
Note: See TracChangeset
for help on using the changeset viewer.