mainphpGroupWare - Support: sr #100385, INSERT fails on columns of type...

 
 

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

sr #100385: INSERT fails on columns of type 'auto'

Submitter:  Bradley Bell <btb>
Submitted:  Tue 05 Feb 2002 07:55:13 PM UTC
   
 
Category:  Feature Request Priority:  5 - Normal
Severity:  2 - Minor Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating System:  None

Sun 08 Dec 2002 12:48:54 AM UTC, comment #1: 


This is a feature request and has been marked as such.  The
request will be evaluated, and possibly included in the next (or
later) release.

Dave Hall <skwashd>
Group administrator
Tue 05 Feb 2002 07:55:13 PM UTC, original submission:  


Some parts of phpgw, for example, this patch:
http://savannah.gnu.org/cgi-bin/viewcvs/phpgroupware/setup/inc/class.setup.inc.php.diff?r1=1.9&r2=1.10
are trying to create their own values for insertion into a column which is defined as type 'auto' in it's
respective tables_current.php
This fails on (at least) mssql.

The rationale for not letting the 'auto' column do its job was that eventually, someone wants to have
'app_id' be centrally defined, so operations could be performed by specifying the app_id instead of the
app_name.  The way I see it, there are three options:

Forget about the centrally defined app_id idea, and let the 'auto' column do its job.  How much speed
could one possibly gain by converting everything to use a number instead of app_name?  Then again, if
we always use app_name, we probably don't even need the app_id column.

redefine the app_id column to be 'non-auto', and ALWAYS specify the app_id when inserting.

Call a backend-specific function before and after insertion on a column of type 'auto', which would allow
the insertion to succeed.  For example, on mssql, one would have to execute:
     SET IDENTITY_INSERT $table_name ON
before insertion, and:
     SET IDENTITY_INSERT $table_name OFF
after insertion.

Bradley Bell <btb>

 

(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.

 

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2002-12-08 skwashd support_category_id10161

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code