1

Topic: Question on db handle

I dig golang  for FB. Inside own implementation of the protocol. There was a question about db handle.
In this  db handle undertakes from a packet opResponse (4 bytes after the packet code). Looked implementation in Jaybird if correctly understood - the same. All values which saw - 0, but thus value is used in other packets, from implemented in the driver - opAllocateStatement, opDetatch, opDropDatabase, opInfoDatabase, opTransaction.
Confused that all values zero, even for several connections. Whether it is normal?
Still, "with a view of erudition increase" interesting role of this value in the protocol?

2

Re: Question on db handle

(((

3

Re: Question on db handle

Evgenie wrote:

Confused that all values zero, even for several connections. Whether it is normal?

it is normal.
In current implementation,  objects () are assigned sequentially within a connection.
a connection (it db handle) - always the very first, therefore its value - a zero.
Implementation of the registration of objects (and assignments by it ) can change, therefore it is not necessary to look at specific values.

Evgenie wrote:

Still, "with a view of erudition increase" interesting role of this value in the protocol?

the Protocol should not and does not interpret value .

4

Re: Question on db handle

!

5

Re: Question on db handle

hvlad wrote:

In current implementation,  objects () are assigned sequentially within a connection.

Not absolutely so,  can be repeatedly . But for simplicity - descends smile
PS rem_port:: get_id () in src\remote\remote.h