mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:03:03 +01:00
Corrections.
This commit is contained in:
parent
93f55d91e7
commit
7fd8985732
@ -10,35 +10,32 @@ Syntax Rules:
|
|||||||
|
|
||||||
1) Let DTS be the set of data types over which we must determine the final
|
1) Let DTS be the set of data types over which we must determine the final
|
||||||
result data type.
|
result data type.
|
||||||
|
|
||||||
2) All of the data types in DTS shall be comparable.
|
2) All of the data types in DTS shall be comparable.
|
||||||
|
|
||||||
3) Case:
|
3) Case:
|
||||||
|
|
||||||
a) If any of the data types in DTS is character string, then:
|
a) If any of the data types in DTS is character string, then:
|
||||||
|
|
||||||
1) If any of the data types in DTS is variable-length character string,
|
1) If all data types in DTS are fixed-length character strings, then the result
|
||||||
then the result data type is variable-length character string with
|
is also a fixed-length character string, else a variable-length character
|
||||||
maximum length in characters equal to the maximum of the lengths in
|
string. The resulting string length in characters is equal to the
|
||||||
characters and maximum lengths in characters of the data types in DTS.
|
maximum of the lengths in characters of the data types in DTS.
|
||||||
|
|
||||||
2) Otherwise, the result data type is fixed-length character string with
|
2) The character set and collation are used from the first character string
|
||||||
length in characters equal to the maximum of the lengths in
|
|
||||||
characters of the data types in DTS.
|
|
||||||
|
|
||||||
3) The characterset/collation is used from the first character string
|
|
||||||
data type in DTS.
|
data type in DTS.
|
||||||
|
|
||||||
b) If all of the data types in DTS are exact numeric, then the result data
|
b) If all of the data types in DTS are exact numeric, then the result data
|
||||||
type is exact numeric with scale equal to the maximum of the scales of
|
type is exact numeric with scale equal to the maximum of the scales of
|
||||||
the data types in DTS and the maximum precision of all data types in DTS.
|
the data types in DTS and precision equal to the maximum precision of all
|
||||||
|
data types in DTS.
|
||||||
|
|
||||||
c) If any data type in DTS is approximate numeric, then each data type in DTS
|
c) If any data type in DTS is approximate numeric, then each data type in DTS
|
||||||
shall be numeric else an error is thrown.
|
shall be numeric, else an error is thrown.
|
||||||
|
|
||||||
d) If some data type in DTS is a datetime data type, then every data type in
|
d) If some data type in DTS is a datetime data type, then every data type in
|
||||||
DTS shall be a datetime data type having the same datetime type.
|
DTS shall be a datetime data type having the same datetime type,
|
||||||
|
else an error is thrown.
|
||||||
|
|
||||||
e) If any data type in DTS is BLOB, then each data type in DTS shall be
|
e) If any data type in DTS is BLOB, then each data type in DTS shall be
|
||||||
BLOB and all with the same sub-type.
|
BLOB and all with the same sub-type.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user