On 10-03-2012 11:05, Dmitry Yemanov wrote: >> >> Elegant, but for this task, I just can test the original condition in the >> second place and avoid a flag that doesn't have presence in any other place >> of the code. I mean, >> >> if (in_msg_type != MAX_USHORT) >> { >> request->execute(...); >> } >> >> What am I missing? > > Nothing, as far as I see. >
I do not know the reason for FLAG_EMBEDDED, but for sure what Claudio proposes is not 100% equivalent. In the current code, after first execute with in_msg_type == -1, subsequent executions will not really execute. What Claudio proposes will not really execute only when each execution has in_msg_type == -1. Adriano ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel