bugphpGroupWare - Bugs: bug #3649, so_sql read function

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3649: so_sql read function

Submitter:  Invalid User ID <#19110>
Submitted:  Sat 17 May 2003 07:51:30 AM UTC
   
 
Category:  eTemplates Item Group:  0.9.14.003 release
Severity:  3 - Normal Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  Caeies Open/Closed:  Open
Component Version:  None Operating System:  GNU/Linux - Mandrake
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Fri 04 Jul 2003 06:54:06 PM UTC, comment #1: 

Hi ralf:
i put my patch here, in case maybe someday u will update
the so_sql function :)
i try to make so_sql more useful (but compatiable with old one) i make changes below:
  1. remove a redundant line (var $non_db_cols = array();)
  2. make read function process scalar value, as ur comment say.
  3. make search function work on "NULL" values. i use  "array_key_exists" for this, which need php 4.1.


Invalid User ID <#19110>
Sat 17 May 2003 07:51:30 AM UTC, original submission:  

hi:
  read function seems only accept array as key.
  although the doc says it can accept scalar value.

ex:
  if "serial" is the only primary key with $table

  read($table,array(serial =>1)) works fine
  read($table,1) didn't work.

Invalid User ID <#19110>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-06-06 skwashd Assigned toNone Caeies
2004-01-20 powerstat Assigned to#2883 None
2003-05-17 skwashd Assigned toNone None

Back to the top

Powered by Savane 3.13-da57.
Corresponding source code