Re: [Firebird-devel] Unknown tag value - missing in the list of possible

2018-01-30 Thread Alex Peshkoff via Firebird-devel

On 01/29/18 21:26, paul reeves wrote:

While debugging a an api call I got the error message in 
which obviously means I need to check the dpb in this case but I'm
intrigued about this error message...

What is it actually trying to say?

- Is it just saying the same thing twice - because the tag value is
   invalid it is obviously missing from the list of possible tag values ?

- Or is it that this tag value is not available among the possible tag
   values for this call ?


Yes - almost so.
For some kinds of parameter blocks we support more than one format. For 
example, since fb3 DPB can have traditional format with single byte for 
length of the clumplet (isc_dpb_version1) or new wide format with 4 
bytes for the length of the clumplet, on practice this is unlimited 
clumplet length (isc_dpb_version2). When we prepare ClumpletReader (or 
ClumpletWriter) to work with that block we can't know in advance what 
format will be used, therefore parameter passed to ctor is a list of 
pairs: tag, kind (struct KindList). When tag passed from outer world is 
not found in this list we can't create an instance of the class cause we 
do not know what format should it support and therefore raise an error.


What about the text - sooner of all this is result of bad translation 
from russian to english and I'll be glad to fix this text to what you 
can now suggest.


Alex.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel


[Firebird-devel] Unknown tag value - missing in the list of possible

2018-01-29 Thread paul reeves

While debugging a an api call I got the error message in 
which obviously means I need to check the dpb in this case but I'm
intrigued about this error message...

What is it actually trying to say? 

- Is it just saying the same thing twice - because the tag value is
  invalid it is obviously missing from the list of possible tag values ?

- Or is it that this tag value is not available among the possible tag
  values for this call ?

- Or is it something so obvious that I'm just missing it completely ?

- Or ?



Paul
-- 

Paul Reeves
http://www.ibphoenix.com
Supporting users of Firebird
 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel