Hello,
 when the parametr $name is filled in, it is used an extra sql select using 
tsql function ident_current($name).
This tsql function does not work properly when more php processes are 
concurently inserting in the same table because two diferrent processes get 
the same value.

When parameter $name is null, then it is returned value from SCOPE_IDENTITY 
tsql function that is appended after each statement.

This behaviour is quite insidious because on single process test you get 
correct results.

I suppose to throw an exception if $name is not null. If somebody would 
need to ask on identity value of some previous insert, the values from 
SCOPE_IDENTITY should be preemptively stored in an SqlSrvConnection array 
indexed by table name.

Jan.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to