[Firebird-devel] [FB-Tracker] Created: (CORE-6209) I've been waiting for Firebird-test Approval. Please advise.

2019-12-16 Thread Clyde Eisenbeis (JIRA)
I've been waiting for Firebird-test Approval. Please advise. - Key: CORE-6209 URL: http://tracker.firebirdsql.org/browse/CORE-6209 Project: Firebird Core Issue Type: New Feature

Re: [Firebird-devel] Reading from a just created BLOB

2019-12-16 Thread Dimitry Sibiryakov
16.12.2019 18:03, Adriano dos Santos Fernandes wrote: Using internal (BLB_*) or external API, looks like garbage is read when one creates a blob and tries to read from it (using the same handle, before it's closed). Should this return an error (writing from an opened existing BLOB does)?

[Firebird-devel] Reading from a just created BLOB

2019-12-16 Thread Adriano dos Santos Fernandes
Hi! Using internal (BLB_*) or external API, looks like garbage is read when one creates a blob and tries to read from it (using the same handle, before it's closed). Should this return an error (writing from an opened existing BLOB does)? Adriano Firebird-Devel mailing list, web interface

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Mark Rotteveel a écrit : In other words, your number has 39 digits and is too big to fit in a signed int128, and therefor is too big for NUMERIC(38) BTW, as a DECFLOAT(16), that number would be 2039748092580420E+23, so you would lose +/- 23 digits of precision (more due to rounding) Mark

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Mark Rotteveel a écrit : On 2019-12-16 15:42, Norbert Saint Georges wrote: Mark Rotteveel a écrit : I can't answer that without information what the problem is. Mark okay :-) I was actually referring to what you meant with: """ t = kb t1 = ok """ Especially regarding the 'kb', I had no

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Pierre Y.
> BTW: Such an extremely high part-number seems rather odd, and could > indicate those numbers encode additional information, which may indicate > this should be a string anyway. > Could these number be GUID encoded as Int128 ? If so they could be stored as CHAR(16) CHARACTER SET OCTETS

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Mark Rotteveel
On 2019-12-16 15:42, Norbert Saint Georges wrote: Mark Rotteveel a écrit : I can't answer that without information what the problem is. Mark okay :-) I was actually referring to what you meant with: """ t = kb t1 = ok """ Especially regarding the 'kb', I had no clue what you meant, but

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Mark Rotteveel
On 2019-12-16 16:18, Norbert Saint Georges wrote: Dimitry Sibiryakov a écrit : 16.12.2019 15:42, Norbert Saint Georges wrote: I am developing an application to import Oracle DBs to Firebird 4. Do you mean "automatic import"? yes, for people like me, who don't like tinkering with

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Dimitry Sibiryakov a écrit : 16.12.2019 15:42, Norbert Saint Georges wrote: I am developing an application to import Oracle DBs to Firebird 4. Do you mean "automatic import"? yes, for people like me, who don't like tinkering with something other than Firebird :-) part_id is a number

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Dimitry Sibiryakov
16.12.2019 15:42, Norbert Saint Georges wrote: I am developing an application to import Oracle DBs to Firebird 4. Do you mean "automatic import"? part_id is a number that has the value:203974809258041991228294191469794647457 what should i use in firebird 4 to import part_id? For

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Mark Rotteveel a écrit : I can't answer that without information what the problem is. Mark okay :-) I am developing an application to import Oracle DBs to Firebird 4. when for example, a table is declared like this: CREATE TABLE part ( part_id NUMBER GENERATED BY DEFAULT AS IDENTITY,  

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Mark Rotteveel
On 2019-12-16 14:05, Norbert Saint Georges wrote: Thank you for your answer. but when i do the test create table t (id numeric (38,0)); insert into t (id) values (203974809258041991228294191469794647457); create table t1 (id decfloat (16)); insert into t1 (id) values

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Thank you for your answer. but when i do the test create table t (id numeric (38,0)); insert into t (id) values (203974809258041991228294191469794647457); create table t1 (id decfloat (16)); insert into t1 (id) values (203974809258041991228294191469794647457); t = kb t1 = ok I have to import

Re: [Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Mark Rotteveel
On 2019-12-16 09:43, Norbert Saint Georges wrote: Hello, can't an identity column be a decfloat (16)?   RECREATE TABLE FIREBIRD_PARTS (   PART_ID DECFLOAT (16) GENERATED BY DEFAULT AS IDENTITY not null     , PART_NAME varchar (255) not null     , BUY_PRICE

[Firebird-devel] how to declare a decfloat (16) with a scale of zero for a column GENERATED BY DEFAULT AS IDENTITY

2019-12-16 Thread Norbert Saint Georges
Hello, can't an identity column be a decfloat (16)?   RECREATE TABLE FIREBIRD_PARTS (   PART_ID DECFLOAT (16) GENERATED BY DEFAULT AS IDENTITY not null     , PART_NAME varchar (255) not null     , BUY_PRICE decimal (9, 2) ); error: 336068881 description found in