# https://www.oracletutorial.com/oracle-basics/oracle-float/
estimated_binary_precision = int(precision / 0.30103)
raise exc.ArgumentError(
- "Oracle FLOAT types use 'binary precision', which does "
- "not convert cleanly from decimal 'precision'. Please "
- "specify "
- f"this type with a separate Oracle variant, such as "
- f"{type_.__class__.__name__}(precision={precision})."
+ "Oracle Database FLOAT types use 'binary precision', "
+ "which does not convert cleanly from decimal "
+ "'precision'. Please specify "
+ "this type with a separate Oracle Database variant, such "
+ f"as {type_.__class__.__name__}(precision={precision})."
f"with_variant(oracle.FLOAT"
f"(binary_precision="
f"{estimated_binary_precision}), 'oracle'), so that the "
- "Oracle specific 'binary_precision' may be specified "
- "accurately."
+ "Oracle Database specific 'binary_precision' may be "
+ "specified accurately."
)
else:
precision = binary_precision
@util.deprecated_params(
use_binds_for_limits=(
"1.4",
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated. The dialect now renders LIMIT /OFFSET integers "
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter is "
+ "deprecated. The dialect now renders LIMIT / OFFSET integers "
"inline in all cases using a post-compilation hook, so that the "
"value is still represented by a 'bound parameter' on the Core "
"Expression side.",
def test_use_binds_for_limits_disabled_one_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=False, enable_offset_fetch=False
def test_use_binds_for_limits_disabled_two_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=False, enable_offset_fetch=False
def test_use_binds_for_limits_disabled_three_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=False, enable_offset_fetch=False
def test_use_binds_for_limits_enabled_one_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=True, enable_offset_fetch=False
def test_use_binds_for_limits_enabled_two_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=True, enable_offset_fetch=False
def test_use_binds_for_limits_enabled_three_legacy(self):
t = table("sometable", column("col1"), column("col2"))
with testing.expect_deprecated(
- "The ``use_binds_for_limits`` Oracle dialect parameter is "
- "deprecated."
+ "The ``use_binds_for_limits`` Oracle Database dialect parameter "
+ "is deprecated."
):
dialect = oracle.OracleDialect(
use_binds_for_limits=True, enable_offset_fetch=False
def test_no_decimal_float_precision(self):
with expect_raises_message(
exc.ArgumentError,
- "Oracle FLOAT types use 'binary precision', which does not "
- "convert cleanly from decimal 'precision'. Please specify this "
- "type with a separate Oracle variant, such as "
+ "Oracle Database FLOAT types use 'binary precision', which does "
+ "not convert cleanly from decimal 'precision'. Please specify "
+ "this type with a separate Oracle Database variant, such as "
r"FLOAT\(precision=5\).with_variant\(oracle.FLOAT\("
r"binary_precision=16\), 'oracle'\), so that the Oracle "
- "specific 'binary_precision' may be specified accurately.",
+ "Database specific 'binary_precision' may be specified "
+ "accurately.",
):
FLOAT(5).compile(dialect=oracle.dialect())
)
def test_numerics_broken_inspection(self, metadata, connection):
- """Numeric scenarios where Oracle type info is 'broken',
+ """Numeric scenarios where Oracle Databasee type info is 'broken',
returning us precision, scale of the form (0, 0) or (0, -127).
We convert to Decimal and let int()/float() processors take over.