Changeset 6351 for sandbox/2.4.1-3/prototype/services
- Timestamp:
- 05/30/12 11:34:56 (12 years ago)
- Location:
- sandbox/2.4.1-3/prototype/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.1-3/prototype/services/OpenLDAP.php
r5804 r6351 13 13 if( !isset($criteria["limit"]) ) 14 14 $criteria["limit"] = $this->limit; 15 15 16 16 $sr = ldap_search( $this->con , $this->config['context'] , self::parseCriteria($criteria , $map) , self::parseJustthese($justthese, $map) , 0 , $criteria["limit"]); 17 17 if(!$sr) return false; … … 156 156 $as = array_shift( $filter ); 157 157 $op = self::parseOperator( $as ); 158 158 159 159 if( is_array($filter[0]) ) 160 160 { -
sandbox/2.4.1-3/prototype/services/PostgreSQL.php
r6145 r6351 197 197 $val[] = '\''.addslashes($v).'\''; 198 198 } 199 200 return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING '.$map['id'].' as id'; 199 200 // return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING '.$map['id'].' as id'; 201 return '('.implode(',', $ind).') VALUES ('.implode(',', $val).') RETURNING id'; 201 202 } 202 203 … … 306 307 case 'or': return( $op ); 307 308 case 'in': return array( $op ); 309 case '!in': return array( 'NOT IN' ); 308 310 case '^': return array( 'like', '%', '' ); 309 311 case '$': return array( 'like', '', '%' );
Note: See TracChangeset
for help on using the changeset viewer.