§ w<ˆj¯dãó�—dZddlZddlZddlZddlZddlmZddlmZddlm Z ddlm Z dd lm Z dd lm Zdd lmZdd lmZdd lmZddl mZddl mZddl mZddl mZdd l mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddl mZddl m Z ddl m!Z!ddl m"Z"ddl m#Z#ddl m$Z$dd lm%Z%dd!l&m'Z'd"Z(d#Z)d$Z*d%Z+d&Z,d'Z-e.gd(¢¦«Z/Gd)„d*ej0¦«Z0Gd+„d,ej1¦«Z2Gd-„d.ej3¦«Z4Gd/„d0ej5¦«Z5e5Z6Gd1„d2e7¦«Z8Gd3„d4e8ej9¦«Z:Gd5„d6e8ej9¦«Z;Gd7„d8e8ej9¦«Z<Gd9„d:ej=¦«Z>Gd;„de?ej@¦«ZAGd?„d@e?ejB¦«ZCGdA„dBejD¦«ZEGdC„dDeE¦«ZFGdE„dFejB¦«ZGGdG„dHejHejI¦«ZHGdI„dJejI¦«ZJGdK„dLejK¦«ZLGdM„dNej=¦«ZMGdO„dPej=¦«ZNGdQ„dRej=¦«ZOGdS„dTej=¦«ZPGdU„dVej=¦«ZQGdW„dXe jRjS¦«ZTe'eTdY¦«ZUe:ZVe4ZWe0ZXe2ZYe5ZZe;Z[eZ]e#Z^eGZ_e$Z`e!ZaeZbeZceZdeHZeeJZfeMZgeNZheOZiePZjeQZkidZe“d[e“d\e"“d]e2“d^e$“d_e!“d`e“dae“dbe#“dceG“dde“dee “dfe“dge“dhe<“die>“dje“e5e;eeHeMe0eJeLeEeNeOePeQdkœ ¥ZlGdl„dmejm¦«ZnGdn„doejo¦«ZpGdp„dqejq¦«ZrGdr„dser¦«ZsGdt„duejt¦«ZuGdv„dwejv¦«Zwdx„Zxdy„Zydz„Zzd{„Z{ej|¦«Z}d|„Z~Gd}„d~ej¦«Z€dS)a![ .. dialect:: mssql :name: Microsoft SQL Server .. _mssql_external_dialects: External Dialects ----------------- In addition to the above DBAPI layers with native SQLAlchemy support, there are third-party dialects for other DBAPI layers that are compatible with SQL Server. See the "External Dialects" list on the :ref:`dialect_toplevel` page. .. _mssql_identity: Auto Increment Behavior / IDENTITY Columns ------------------------------------------ SQL Server provides so-called "auto incrementing" behavior using the ``IDENTITY`` construct, which can be placed on any single integer column in a table. SQLAlchemy considers ``IDENTITY`` within its default "autoincrement" behavior for an integer primary key column, described at :paramref:`_schema.Column.autoincrement`. This means that by default, the first integer primary key column in a :class:`_schema.Table` will be considered to be the identity column and will generate DDL as such:: from sqlalchemy import Table, MetaData, Column, Integer m = MetaData() t = Table('t', m, Column('id', Integer, primary_key=True), Column('x', Integer)) m.create_all(engine) The above example will generate DDL as: .. sourcecode:: sql CREATE TABLE t ( id INTEGER NOT NULL IDENTITY(1,1), x INTEGER NULL, PRIMARY KEY (id) ) For the case where this default generation of ``IDENTITY`` is not desired, specify ``False`` for the :paramref:`_schema.Column.autoincrement` flag, on the first integer primary key column:: m = MetaData() t = Table('t', m, Column('id', Integer, primary_key=True, autoincrement=False), Column('x', Integer)) m.create_all(engine) To add the ``IDENTITY`` keyword to a non-primary key column, specify ``True`` for the :paramref:`_schema.Column.autoincrement` flag on the desired :class:`_schema.Column` object, and ensure that :paramref:`_schema.Column.autoincrement` is set to ``False`` on any integer primary key column:: m = MetaData() t = Table('t', m, Column('id', Integer, primary_key=True, autoincrement=False), Column('x', Integer, autoincrement=True)) m.create_all(engine) .. versionchanged:: 1.3 Added ``mssql_identity_start`` and ``mssql_identity_increment`` parameters to :class:`_schema.Column`. These replace the use of the :class:`.Sequence` object in order to specify these values. .. deprecated:: 1.3 The use of :class:`.Sequence` to specify IDENTITY characteristics is deprecated and will be removed in a future release. Please use the ``mssql_identity_start`` and ``mssql_identity_increment`` parameters documented at :ref:`mssql_identity`. .. note:: There can only be one IDENTITY column on the table. When using ``autoincrement=True`` to enable the IDENTITY keyword, SQLAlchemy does not guard against multiple columns specifying the option simultaneously. The SQL Server database will instead reject the ``CREATE TABLE`` statement. .. note:: An INSERT statement which attempts to provide a value for a column that is marked with IDENTITY will be rejected by SQL Server. In order for the value to be accepted, a session-level option "SET IDENTITY_INSERT" must be enabled. The SQLAlchemy SQL Server dialect will perform this operation automatically when using a core :class:`_expression.Insert` construct; if the execution specifies a value for the IDENTITY column, the "IDENTITY_INSERT" option will be enabled for the span of that statement's invocation.However, this scenario is not high performing and should not be relied upon for normal use. If a table doesn't actually require IDENTITY behavior in its integer primary key column, the keyword should be disabled when creating the table by ensuring that ``autoincrement=False`` is set. Controlling "Start" and "Increment" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Specific control over the "start" and "increment" values for the ``IDENTITY`` generator are provided using the ``mssql_identity_start`` and ``mssql_identity_increment`` parameters passed to the :class:`_schema.Column` object:: from sqlalchemy import Table, Integer, Column test = Table( 'test', metadata, Column( 'id', Integer, primary_key=True, mssql_identity_start=100, mssql_identity_increment=10 ), Column('name', String(20)) ) The CREATE TABLE for the above :class:`_schema.Table` object would be: .. sourcecode:: sql CREATE TABLE test ( id INTEGER NOT NULL IDENTITY(100,10) PRIMARY KEY, name VARCHAR(20) NULL, ) .. versionchanged:: 1.3 The ``mssql_identity_start`` and ``mssql_identity_increment`` parameters are now used to affect the ``IDENTITY`` generator for a :class:`_schema.Column` under SQL Server. Previously, the :class:`.Sequence` object was used. As SQL Server now supports real sequences as a separate construct, :class:`.Sequence` will be functional in the normal way in a future SQLAlchemy version. INSERT behavior ^^^^^^^^^^^^^^^^ Handling of the ``IDENTITY`` column at INSERT time involves two key techniques. The most common is being able to fetch the "last inserted value" for a given ``IDENTITY`` column, a process which SQLAlchemy performs implicitly in many cases, most importantly within the ORM. The process for fetching this value has several variants: * In the vast majority of cases, RETURNING is used in conjunction with INSERT statements on SQL Server in order to get newly generated primary key values: .. sourcecode:: sql INSERT INTO t (x) OUTPUT inserted.id VALUES (?) * When RETURNING is not available or has been disabled via ``implicit_returning=False``, either the ``scope_identity()`` function or the ``@@identity`` variable is used; behavior varies by backend: * when using PyODBC, the phrase ``; select scope_identity()`` will be appended to the end of the INSERT statement; a second result set will be fetched in order to receive the value. Given a table as:: t = Table('t', m, Column('id', Integer, primary_key=True), Column('x', Integer), implicit_returning=False) an INSERT will look like: .. sourcecode:: sql INSERT INTO t (x) VALUES (?); select scope_identity() * Other dialects such as pymssql will call upon ``SELECT scope_identity() AS lastrowid`` subsequent to an INSERT statement. If the flag ``use_scope_identity=False`` is passed to :func:`_sa.create_engine`, the statement ``SELECT @@identity AS lastrowid`` is used instead. A table that contains an ``IDENTITY`` column will prohibit an INSERT statement that refers to the identity column explicitly. The SQLAlchemy dialect will detect when an INSERT construct, created using a core :func:`_expression.insert` construct (not a plain string SQL), refers to the identity column, and in this case will emit ``SET IDENTITY_INSERT ON`` prior to the insert statement proceeding, and ``SET IDENTITY_INSERT OFF`` subsequent to the execution. Given this example:: m = MetaData() t = Table('t', m, Column('id', Integer, primary_key=True), Column('x', Integer)) m.create_all(engine) with engine.begin() as conn: conn.execute(t.insert(), {'id': 1, 'x':1}, {'id':2, 'x':2}) The above column will be created with IDENTITY, however the INSERT statement we emit is specifying explicit values. In the echo output we can see how SQLAlchemy handles this: .. sourcecode:: sql CREATE TABLE t ( id INTEGER NOT NULL IDENTITY(1,1), x INTEGER NULL, PRIMARY KEY (id) ) COMMIT SET IDENTITY_INSERT t ON INSERT INTO t (id, x) VALUES (?, ?) ((1, 1), (2, 2)) SET IDENTITY_INSERT t OFF COMMIT This is an auxiliary use case suitable for testing and bulk insert scenarios. MAX on VARCHAR / NVARCHAR ------------------------- SQL Server supports the special string "MAX" within the :class:`_types.VARCHAR` and :class:`_types.NVARCHAR` datatypes, to indicate "maximum length possible". The dialect currently handles this as a length of "None" in the base type, rather than supplying a dialect-specific version of these types, so that a base type specified such as ``VARCHAR(None)`` can assume "unlengthed" behavior on more than one backend without using dialect-specific types. To build a SQL Server VARCHAR or NVARCHAR with MAX length, use None:: my_table = Table( 'my_table', metadata, Column('my_data', VARCHAR(None)), Column('my_n_data', NVARCHAR(None)) ) Collation Support ----------------- Character collations are supported by the base string types, specified by the string argument "collation":: from sqlalchemy import VARCHAR Column('login', VARCHAR(32, collation='Latin1_General_CI_AS')) When such a column is associated with a :class:`_schema.Table`, the CREATE TABLE statement for this column will yield:: login VARCHAR(32) COLLATE Latin1_General_CI_AS NULL LIMIT/OFFSET Support -------------------- MSSQL has no support for the LIMIT or OFFSET keywords. LIMIT is supported directly through the ``TOP`` Transact SQL keyword:: select.limit will yield:: SELECT TOP n If using SQL Server 2005 or above, LIMIT with OFFSET support is available through the ``ROW_NUMBER OVER`` construct. For versions below 2005, LIMIT with OFFSET usage will fail. .. _mssql_isolation_level: Transaction Isolation Level --------------------------- All SQL Server dialects support setting of transaction isolation level both via a dialect-specific parameter :paramref:`_sa.create_engine.isolation_level` accepted by :func:`_sa.create_engine`, as well as the :paramref:`.Connection.execution_options.isolation_level` argument as passed to :meth:`_engine.Connection.execution_options`. This feature works by issuing the command ``SET TRANSACTION ISOLATION LEVEL `` for each new connection. To set isolation level using :func:`_sa.create_engine`:: engine = create_engine( "mssql+pyodbc://scott:tiger@ms_2008", isolation_level="REPEATABLE READ" ) To set using per-connection execution options:: connection = engine.connect() connection = connection.execution_options( isolation_level="READ COMMITTED" ) Valid values for ``isolation_level`` include: * ``AUTOCOMMIT`` - pyodbc / pymssql-specific * ``READ COMMITTED`` * ``READ UNCOMMITTED`` * ``REPEATABLE READ`` * ``SERIALIZABLE`` * ``SNAPSHOT`` - specific to SQL Server .. versionadded:: 1.2 added AUTOCOMMIT isolation level setting .. seealso:: :ref:`dbapi_autocommit` Nullability ----------- MSSQL has support for three levels of column nullability. The default nullability allows nulls and is explicit in the CREATE TABLE construct:: name VARCHAR(20) NULL If ``nullable=None`` is specified then no specification is made. In other words the database's configured default is used. This will render:: name VARCHAR(20) If ``nullable`` is ``True`` or ``False`` then the column will be ``NULL`` or ``NOT NULL`` respectively. Date / Time Handling -------------------- DATE and TIME are supported. Bind parameters are converted to datetime.datetime() objects as required by most MSSQL drivers, and results are processed from strings if needed. The DATE and TIME types are not available for MSSQL 2005 and previous - if a server version below 2008 is detected, DDL for these types will be issued as DATETIME. .. _mssql_large_type_deprecation: Large Text/Binary Type Deprecation ---------------------------------- Per `SQL Server 2012/2014 Documentation `_, the ``NTEXT``, ``TEXT`` and ``IMAGE`` datatypes are to be removed from SQL Server in a future release. SQLAlchemy normally relates these types to the :class:`.UnicodeText`, :class:`_expression.TextClause` and :class:`.LargeBinary` datatypes. In order to accommodate this change, a new flag ``deprecate_large_types`` is added to the dialect, which will be automatically set based on detection of the server version in use, if not otherwise set by the user. The behavior of this flag is as follows: * When this flag is ``True``, the :class:`.UnicodeText`, :class:`_expression.TextClause` and :class:`.LargeBinary` datatypes, when used to render DDL, will render the types ``NVARCHAR(max)``, ``VARCHAR(max)``, and ``VARBINARY(max)``, respectively. This is a new behavior as of the addition of this flag. * When this flag is ``False``, the :class:`.UnicodeText`, :class:`_expression.TextClause` and :class:`.LargeBinary` datatypes, when used to render DDL, will render the types ``NTEXT``, ``TEXT``, and ``IMAGE``, respectively. This is the long-standing behavior of these types. * The flag begins with the value ``None``, before a database connection is established. If the dialect is used to render DDL without the flag being set, it is interpreted the same as ``False``. * On first connection, the dialect detects if SQL Server version 2012 or greater is in use; if the flag is still at ``None``, it sets it to ``True`` or ``False`` based on whether 2012 or greater is detected. * The flag can be set to either ``True`` or ``False`` when the dialect is created, typically via :func:`_sa.create_engine`:: eng = create_engine("mssql+pymssql://user:pass@host/db", deprecate_large_types=True) * Complete control over whether the "old" or "new" types are rendered is available in all SQLAlchemy versions by using the UPPERCASE type objects instead: :class:`_types.NVARCHAR`, :class:`_types.VARCHAR`, :class:`_types.VARBINARY`, :class:`_types.TEXT`, :class:`_mssql.NTEXT`, :class:`_mssql.IMAGE` will always remain fixed and always output exactly that type. .. versionadded:: 1.0.0 .. _multipart_schema_names: Multipart Schema Names ---------------------- SQL Server schemas sometimes require multiple parts to their "schema" qualifier, that is, including the database name and owner name as separate tokens, such as ``mydatabase.dbo.some_table``. These multipart names can be set at once using the :paramref:`_schema.Table.schema` argument of :class:`_schema.Table`:: Table( "some_table", metadata, Column("q", String(50)), schema="mydatabase.dbo" ) When performing operations such as table or component reflection, a schema argument that contains a dot will be split into separate "database" and "owner" components in order to correctly query the SQL Server information schema tables, as these two values are stored separately. Additionally, when rendering the schema name for DDL or SQL, the two components will be quoted separately for case sensitive names and other special characters. Given an argument as below:: Table( "some_table", metadata, Column("q", String(50)), schema="MyDataBase.dbo" ) The above schema would be rendered as ``[MyDataBase].dbo``, and also in reflection, would be reflected using "dbo" as the owner and "MyDataBase" as the database name. To control how the schema name is broken into database / owner, specify brackets (which in SQL Server are quoting characters) in the name. Below, the "owner" will be considered as ``MyDataBase.dbo`` and the "database" will be None:: Table( "some_table", metadata, Column("q", String(50)), schema="[MyDataBase.dbo]" ) To individually specify both database and owner name with special characters or embedded dots, use two sets of brackets:: Table( "some_table", metadata, Column("q", String(50)), schema="[MyDataBase.Period].[MyOwner.Dot]" ) .. versionchanged:: 1.2 the SQL Server dialect now treats brackets as identifier delimeters splitting the schema into separate database and owner tokens, to allow dots within either name itself. .. _legacy_schema_rendering: Legacy Schema Mode ------------------ Very old versions of the MSSQL dialect introduced the behavior such that a schema-qualified table would be auto-aliased when used in a SELECT statement; given a table:: account_table = Table( 'account', metadata, Column('id', Integer, primary_key=True), Column('info', String(100)), schema="customer_schema" ) this legacy mode of rendering would assume that "customer_schema.account" would not be accepted by all parts of the SQL statement, as illustrated below:: >>> eng = create_engine("mssql+pymssql://mydsn", legacy_schema_aliasing=True) >>> print(account_table.select().compile(eng)) SELECT account_1.id, account_1.info FROM customer_schema.account AS account_1 This mode of behavior is now off by default, as it appears to have served no purpose; however in the case that legacy applications rely upon it, it is available using the ``legacy_schema_aliasing`` argument to :func:`_sa.create_engine` as illustrated above. .. versionchanged:: 1.1 the ``legacy_schema_aliasing`` flag introduced in version 1.0.5 to allow disabling of legacy mode for schemas now defaults to False. .. _mssql_indexes: Clustered Index Support ----------------------- The MSSQL dialect supports clustered indexes (and primary keys) via the ``mssql_clustered`` option. This option is available to :class:`.Index`, :class:`.UniqueConstraint`. and :class:`.PrimaryKeyConstraint`. To generate a clustered index:: Index("my_index", table.c.x, mssql_clustered=True) which renders the index as ``CREATE CLUSTERED INDEX my_index ON table (x)``. To generate a clustered primary key use:: Table('my_table', metadata, Column('x', ...), Column('y', ...), PrimaryKeyConstraint("x", "y", mssql_clustered=True)) which will render the table, for example, as:: CREATE TABLE my_table (x INTEGER NOT NULL, y INTEGER NOT NULL, PRIMARY KEY CLUSTERED (x, y)) Similarly, we can generate a clustered unique constraint using:: Table('my_table', metadata, Column('x', ...), Column('y', ...), PrimaryKeyConstraint("x"), UniqueConstraint("y", mssql_clustered=True), ) To explicitly request a non-clustered primary key (for example, when a separate clustered index is desired), use:: Table('my_table', metadata, Column('x', ...), Column('y', ...), PrimaryKeyConstraint("x", "y", mssql_clustered=False)) which will render the table, for example, as:: CREATE TABLE my_table (x INTEGER NOT NULL, y INTEGER NOT NULL, PRIMARY KEY NONCLUSTERED (x, y)) .. versionchanged:: 1.1 the ``mssql_clustered`` option now defaults to None, rather than False. ``mssql_clustered=False`` now explicitly renders the NONCLUSTERED clause, whereas None omits the CLUSTERED clause entirely, allowing SQL Server defaults to take effect. MSSQL-Specific Index Options ----------------------------- In addition to clustering, the MSSQL dialect supports other special options for :class:`.Index`. INCLUDE ^^^^^^^ The ``mssql_include`` option renders INCLUDE(colname) for the given string names:: Index("my_index", table.c.x, mssql_include=['y']) would render the index as ``CREATE INDEX my_index ON table (x) INCLUDE (y)`` .. _mssql_index_where: Filtered Indexes ^^^^^^^^^^^^^^^^ The ``mssql_where`` option renders WHERE(condition) for the given string names:: Index("my_index", table.c.x, mssql_where=table.c.x > 10) would render the index as ``CREATE INDEX my_index ON table (x) WHERE x > 10``. .. versionadded:: 1.3.4 Index ordering ^^^^^^^^^^^^^^ Index ordering is available via functional expressions, such as:: Index("my_index", table.c.x.desc()) would render the index as ``CREATE INDEX my_index ON table (x DESC)`` .. seealso:: :ref:`schema_indexes_functional` Compatibility Levels -------------------- MSSQL supports the notion of setting compatibility levels at the database level. This allows, for instance, to run a database that is compatible with SQL2000 while running on a SQL2005 database server. ``server_version_info`` will always return the database server version information (in this case SQL2005) and not the compatibility level information. Because of this, if running under a backwards compatibility mode SQLAlchemy may attempt to use T-SQL statements that are unable to be parsed by the database server. Triggers -------- SQLAlchemy by default uses OUTPUT INSERTED to get at newly generated primary key values via IDENTITY columns or other server side defaults. MS-SQL does not allow the usage of OUTPUT INSERTED on tables that have triggers. To disable the usage of OUTPUT INSERTED on a per-table basis, specify ``implicit_returning=False`` for each :class:`_schema.Table` which has triggers:: Table('mytable', metadata, Column('id', Integer, primary_key=True), # ..., implicit_returning=False ) Declarative form:: class MyClass(Base): # ... __table_args__ = {'implicit_returning':False} This option can also be specified engine-wide using the ``implicit_returning=False`` argument on :func:`_sa.create_engine`. .. _mssql_rowcount_versioning: Rowcount Support / ORM Versioning --------------------------------- The SQL Server drivers may have limited ability to return the number of rows updated from an UPDATE or DELETE statement. As of this writing, the PyODBC driver is not able to return a rowcount when OUTPUT INSERTED is used. This impacts the SQLAlchemy ORM's versioning feature in many cases where server-side value generators are in use in that while the versioning operations can succeed, the ORM cannot always check that an UPDATE or DELETE statement matched the number of rows expected, which is how it verifies that the version identifier matched. When this condition occurs, a warning will be emitted but the operation will proceed. The use of OUTPUT INSERTED can be disabled by setting the :paramref:`_schema.Table.implicit_returning` flag to ``False`` on a particular :class:`_schema.Table`, which in declarative looks like:: class MyTable(Base): __tablename__ = 'mytable' id = Column(Integer, primary_key=True) stuff = Column(String(10)) timestamp = Column(TIMESTAMP(), default=text('DEFAULT')) __mapper_args__ = { 'version_id_col': timestamp, 'version_id_generator': False, } __table_args__ = { 'implicit_returning': False } Enabling Snapshot Isolation --------------------------- SQL Server has a default transaction isolation mode that locks entire tables, and causes even mildly concurrent applications to have long held locks and frequent deadlocks. Enabling snapshot isolation for the database as a whole is recommended for modern levels of concurrency support. This is accomplished via the following ALTER DATABASE commands executed at the SQL prompt:: ALTER DATABASE MyDatabase SET ALLOW_SNAPSHOT_ISOLATION ON ALTER DATABASE MyDatabase SET READ_COMMITTED_SNAPSHOT ON Background on SQL Server snapshot isolation is available at http://msdn.microsoft.com/en-us/library/ms175095.aspx. éNé)Úinformation_schemaé)Úengine)Úexc)Úschema)Úsql)Útypes)Úutil)Údefault)Ú reflection)Úcompiler)Ú expression)Úfunc)Ú quoted_name)ÚBIGINT)ÚBINARY)ÚCHAR)ÚDATE)ÚDATETIME)ÚDECIMAL)ÚFLOAT)ÚINTEGER)ÚNCHAR)ÚNUMERIC)ÚNVARCHAR)ÚSMALLINT)ÚTEXT)ÚVARCHAR©Úupdate_wrapper)Úpublic_factory)é )é )é )é )é )é)´ÚaddÚallÚalterÚandÚanyÚasÚascÚ authorizationÚbackupÚbeginÚbetweenÚbreakÚbrowseÚbulkÚbyÚcascadeÚcaseÚcheckÚ checkpointÚcloseÚ clusteredÚcoalesceÚcollateÚcolumnÚcommitÚcomputeÚ constraintÚcontainsÚ containstableÚcontinueÚconvertÚcreateÚcrossÚcurrentÚ current_dateÚ current_timeÚcurrent_timestampÚ current_userÚcursorÚdatabaseÚdbccÚ deallocateÚdeclarer ÚdeleteÚdenyÚdescÚdiskÚdistinctÚ distributedÚdoubleÚdropÚdumpÚelseÚendÚerrlvlÚescapeÚexceptÚexecÚexecuteÚexistsÚexitÚexternalÚfetchÚfileÚ fillfactorÚforÚforeignÚfreetextÚ freetexttableÚfromÚfullÚfunctionÚgotoÚgrantÚgroupÚhavingÚholdlockÚidentityÚidentity_insertÚ identitycolÚifÚinÚindexÚinnerÚinsertÚ intersectÚintoÚisÚjoinÚkeyÚkillÚleftÚlikeÚlinenoÚloadÚmergeÚnationalÚnocheckÚ nonclusteredÚnotÚnullÚnullifÚofÚoffÚoffsetsÚonÚopenÚopendatasourceÚ openqueryÚ openrowsetÚopenxmlÚoptionÚorÚorderÚouterÚoverÚpercentÚpivotÚplanÚ precisionÚprimaryÚprintÚprocÚ procedureÚpublicÚ raiserrorÚreadÚreadtextÚ reconfigureÚ referencesÚ replicationÚrestoreÚrestrictÚreturnÚrevertÚrevokeÚrightÚrollbackÚrowcountÚ rowguidcolÚruleÚsaverÚ securityauditÚselectÚ session_userÚsetÚsetuserÚshutdownÚsomeÚ statisticsÚ system_userÚtableÚ tablesampleÚtextsizeÚthenÚtoÚtopÚtranÚ transactionÚtriggerÚtruncateÚtsequalÚunionÚuniqueÚunpivotÚupdateÚ updatetextÚuseÚuserÚvaluesÚvaryingÚviewÚwaitforÚwhenÚwhereÚwhileÚwithÚ writetextcó"‡—eZdZdZˆfd„ZˆxZS)ÚREALc ót•—| dd¦«tt|¦«jdi|¤ŽdS)Nr é©)Ú setdefaultÚsuperrÜÚ__init__)ÚselfÚkwÚ __class__s €úr/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/dialects/mssql/base.pyrâz REAL.__init__˜sBø€ð � Š �k 2Ñ&Ô&Ð&Ø"��d�DÑÔÔ"Ð(Ð( RÐ(Ð(Ð(Ð(Ð(ó©Ú__name__Ú __module__Ú __qualname__Ú__visit_name__râÚ __classcell__©rås@rærÜrÜ•s=ø€€€€€Ø€Nð)ð)ð)ð)ð)ð)ð)ð)ð)rçrÜcó—eZdZdZdS)ÚTINYINTN©rérêrërìrßrçrærðrð s€€€€€Ø€N€N€Nrçrðcó:—eZdZd„Zejd¦«Zd„ZdS)Ú_MSDatecó —d„}|S)NcóŠ—t|¦«tjkr%tj|j|j|j¦«S|S©N©ÚtypeÚdatetimeÚdateÚyearÚmonthÚday©Úvalues ræÚprocessz'_MSDate.bind_processor..process¬ó5€Ý�E‰{Œ{�hœmÒ+Ð+ÝÔ(¨¬°U´[À%Ä)ÑLÔLÐLà� rçrß©rãÚdialectrs ræÚbind_processorz_MSDate.bind_processor«ó€ð ð ð ð ˆrçz(\d+)-(\d+)-(\d+)có‡—ˆfd„}|S)NcóJ•—t|tj¦«r| ¦«St|tj¦«rY‰j |¦«}|std|›d�¦«‚tjd„| ¦«D¦«ŽS|S)Núcould not parse z as a date valuecó0—g|]}t|pd¦«‘ŒS©r©Úint©Ú.0Úxs ræú z=_MSDate.result_processor..process..Àó"€Ð&GÐ&GÐ&G°q¥s¨1¨6°¡{¤{Ð&GÐ&GÐ&Grç) Ú isinstancerùrúr Ú string_typesÚ_regÚmatchÚ ValueErrorÚgroups©rÿÚmrãs €rærz)_MSDate.result_processor..process·óŸø€Ý˜%¥Ô!2Ñ3Ô3ð Ø—z’z‘|”|Ð#ݘE¥4Ô#4Ñ5Ô5ð Ø”I—O’O EÑ*Ô*�ØðÝ$˜*Ø@EÀÀÐGñôðõ ”}Ð&GÐ&G¸A¿HºH¹J¼JÐ&GÑ&GÔ&GÐHÐHà� rçrß©rãrÚcoltypers` ræÚresult_processorz_MSDate.result_processor¶ó#ø€ð ð ð ð ð ðˆrçN)rérêrërÚreÚcompilerrrßrçræróróªsF€€€€€ðððð ˆ2Œ:Ð*Ñ +Ô +€Dðððððrçrócóp‡—eZdZdˆfd„ Zejddd¦«Zd„Zej d¦«Z d„Z ˆxZ S) ÚTIMENc ód•—||_tt|¦« ¦«dSrö)r rár"râ)rãr Úkwargsrås €rærâz TIME.__init__Ès,ø€Ø"ˆŒÝ �d�DÑÔ×"Ò"Ñ$Ô$Ð$Ð$Ð$rçilrcó‡—ˆfd„}|S)Ncó•—t|tj¦«r8tj ‰j| ¦«¦«}n*t|tj¦«r t |¦«}|Srö)rrùÚcombineÚ_TIME__zero_dateÚtimeÚstr)rÿrãs €rærz$TIME.bind_processor..processÏsoø€Ý˜%¥Ô!2Ñ3Ô3ð #Ý Ô)×1Ò1ØÔ$ e§j¢j¡l¤lñô��õ˜E¥8¤=Ñ1Ô1ð #ðõ˜E™ œ �؈Lrçrßrs` rærzTIME.bind_processorÎs#ø€ð ð ð ð ð ðˆrçz!(\d+):(\d+):(\d+)(?:\.(\d{0,6}))?có‡—ˆfd„}|S)NcóJ•—t|tj¦«r| ¦«St|tj¦«rY‰j |¦«}|std|›d�¦«‚tjd„| ¦«D¦«ŽS|S)Nrz as a time valuecó0—g|]}t|pd¦«‘ŒSr r r s rærz:TIME.result_processor..process..êrrç) rrùr)r rrrrrrs €rærz&TIME.result_processor..processárrçrßrs` rærzTIME.result_processoràrrçrö) rérêrërârùrúr(rrr rrrírîs@rær"r"Çs†ø€€€€€ð%ð%ð%ð%ð%ð%ð �(”-  a¨Ñ+Ô+€Kðððð ˆ2Œ:Ð:Ñ ;Ô ;€Dðððððððrçr"có—eZdZd„ZdS)Ú _DateTimeBasecó —d„}|S)NcóŠ—t|¦«tjkr%tj|j|j|j¦«S|Srör÷rþs rærz-_DateTimeBase.bind_processor..processörrçrßrs rærz_DateTimeBase.bind_processorõrrçN)rérêrërrßrçrær/r/ôs#€€€€€ðððððrçr/có—eZdZdS)Ú _MSDateTimeN©rérêrërßrçrær3r3ÿó€€€€€Ø€Drçr3có—eZdZdZdS)Ú SMALLDATETIMENrñrßrçrær7r7s€€€€€Ø$€N€N€Nrçr7có$‡—eZdZdZdˆfd„ ZˆxZS)Ú DATETIME2Nc óV•—tt|¦«jdi|¤Ž||_dS)Nrß)rár9râr )rãr rärås €rærâzDATETIME2.__init__ s1ø€Ø'��i˜ÑÔÔ'Ð-Ð-¨"Ð-Ð-Ð-Ø"ˆŒˆˆrçrörèrîs@rær9r9sBø€€€€€Ø €Nð#ð#ð#ð#ð#ð#ð#ð#ð#ð#rçr9có—eZdZdZdd„ZdS)ÚDATETIMEOFFSETNc ó—||_dSrö©r )rãr r$s rærâzDATETIMEOFFSET.__init__s €Ø"ˆŒˆˆrçrö)rérêrërìrârßrçrær<r<s-€€€€€Ø%€Nð#ð#ð#ð#ð#ð#rçr<có—eZdZd„ZdS)Ú_UnicodeLiteralcó‡—ˆfd„}|S)Ncó~•—| dd¦«}‰jjr| dd¦«}d|zS)Nú'z''ú%z%%zN'%s')ÚreplaceÚidentifier_preparerÚ_double_percents)rÿrs €rærz2_UnicodeLiteral.literal_processor..processsAø€à—M’M # tÑ,Ô,ˆEàÔ*Ô;ð 1ØŸ š  c¨4Ñ0Ô0�à˜U‘?Ð "rçrßrs ` ræÚliteral_processorz!_UnicodeLiteral.literal_processors#ø€ð #ð #ð #ð #ð #ðˆrçN)rérêrërHrßrçrær@r@s#€€€€€ð ð ð ð ð rçr@có—eZdZdS)Ú _MSUnicodeNr4rßrçrærJrJ%r5rçrJcó—eZdZdS)Ú_MSUnicodeTextNr4rßrçrærLrL)r5rçrLcó2‡—eZdZdZdZdZdd„Zˆfd„ZˆxZS)Ú TIMESTAMPaBImplement the SQL Server TIMESTAMP type. Note this is **completely different** than the SQL Standard TIMESTAMP type, which is not supported by SQL Server. It is a read-only datatype that does not support INSERT of values. .. versionadded:: 1.2 .. seealso:: :class:`_mssql.ROWVERSION` NFcó—||_dS)z¾Construct a TIMESTAMP or ROWVERSION type. :param convert_int: if True, binary integer values will be converted to integers on read. .. versionadded:: 1.2 N)Ú convert_int)rãrPs rærâzTIMESTAMP.__init__As€ð'ˆÔÐÐrçcóx•‡—tt|¦« ||¦«Š|jrˆfd„}|S‰S)Ncóh•—‰|¦«}|�#ttj|d¦«d¦«}|S)NÚhexé)r ÚcodecsÚencode)rÿÚsuper_s €rærz+TIMESTAMP.result_processor..processPs6ø€Ø˜˜u™ œ �ØÐ$奤 ¨e°UÑ ;Ô ;¸RÑ@Ô@�EØ� rç)rárNrrP)rãrrrrWrås @€rærzTIMESTAMP.result_processorLsSøø€Ý•y $Ñ'Ô'×8Ò8¸À'ÑJÔJˆØ Ô ð ð ð ð ð ð ðˆNàˆMrç©F) rérêrëÚ__doc__rìÚlengthrârrírîs@rærNrN-sdø€€€€€ð ð ð!€Nð€Fð 'ð 'ð 'ð 'ð ð ð ð ð ð ð ð ð rçrNcó—eZdZdZdZdS)Ú ROWVERSIONa(Implement the SQL Server ROWVERSION type. The ROWVERSION datatype is a SQL Server synonym for the TIMESTAMP datatype, however current SQL Server documentation suggests using ROWVERSION for new datatypes going forward. The ROWVERSION datatype does **not** reflect (e.g. introspect) from the database as itself; the returned datatype will be :class:`_mssql.TIMESTAMP`. This is a read-only datatype that does not support INSERT of values. .. versionadded:: 1.2 .. seealso:: :class:`_mssql.TIMESTAMP` N©rérêrërYrìrßrçrær\r\\s€€€€€ððð("€N€N€Nrçr\có—eZdZdZdZdS)ÚNTEXTzMMSSQL NTEXT type, for variable-length unicode text up to 2^30 characters.Nr]rßrçrær_r_ts€€€€€ððð€N€N€Nrçr_có—eZdZdZdZdS)Ú VARBINARYaGThe MSSQL VARBINARY type. This type is present to support "deprecate_large_types" mode where either ``VARBINARY(max)`` or IMAGE is rendered. Otherwise, this type object is redundant vs. :class:`_types.VARBINARY`. .. versionadded:: 1.0.0 .. seealso:: :ref:`mssql_large_type_deprecation` Nr]rßrçrærara|s€€€€€ððð !€N€N€Nrçracó—eZdZdZdS)ÚIMAGENrñrßrçrærcrc�ó€€€€€Ø€N€N€Nrçrccó—eZdZdZdZdS)ÚXMLa"MSSQL XML type. This is a placeholder type for reflection purposes that does not include any Python-side datatype support. It also does not currently support additional arguments, such as "CONTENT", "DOCUMENT", "xml_schema_collection". .. versionadded:: 1.1.11 Nr]rßrçrærfrf”s€€€€€ð ð ð€N€N€Nrçrfcó—eZdZdZdS)ÚBITNrñrßrçrærhrh£s€€€€€Ø€N€N€Nrçrhcó—eZdZdZdS)ÚMONEYNrñrßrçrærjrj§rdrçrjcó—eZdZdZdS)Ú SMALLMONEYNrñrßrçrærlrl«s€€€€€Ø!€N€N€Nrçrlcó—eZdZdZdS)ÚUNIQUEIDENTIFIERNrñrßrçrærnrn¯s€€€€€Ø'€N€N€Nrçrncó—eZdZdZdS)Ú SQL_VARIANTNrñrßrçrærprp³s€€€€€Ø"€N€N€Nrçrpcó&‡—eZdZdZdZˆfd„ZˆxZS)ÚTryCastz+Represent a SQL Server TRY_CAST expression.Útry_castcóH•—tt|¦«j|i|¤ŽdS)ažCreate a TRY_CAST expression. :class:`.TryCast` is a subclass of SQLAlchemy's :class:`.Cast` construct, and works in the same way, except that the SQL expression rendered is "TRY_CAST" rather than "CAST":: from sqlalchemy import select from sqlalchemy import Numeric from sqlalchemy.dialects.mssql import try_cast stmt = select([ try_cast(product_table.c.unit_price, Numeric(10, 4)) ]) The above would render:: SELECT TRY_CAST (product_table.unit_price AS NUMERIC(10, 4)) FROM product_table .. versionadded:: 1.3.7 N)rárrrâ)rãÚargrärås €rærâzTryCast.__init__¼s-ø€ð. &��g�tÑÔÔ% sÐ1¨bÐ1Ð1Ð1Ð1Ð1rç)rérêrërYrìrârírîs@rærrrr·sCø€€€€€Ø5Ð5à€Nð2ð2ð2ð2ð2ð2ð2ð2ð2rçrrz.dialects.mssql.try_castr ÚbigintÚsmallintÚtinyintÚvarcharÚnvarcharÚcharÚncharÚtextÚntextÚdecimalÚnumericÚfloatrùÚ datetime2Údatetimeoffsetrú) r)Ú smalldatetimeÚbinaryÚ varbinaryÚbitÚrealÚimageÚxmlÚ timestampÚmoneyÚ smallmoneyÚuniqueidentifierÚ sql_variantcóÄ—eZdZd d„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z dS)!ÚMSTypeCompilerNcó¦—t|dd¦«r d|jz}nd}|s|j}|r|d|zz}d d„||fD¦«¦«S)zYExtend a string-type declaration with standard SQL COLLATE annotations. Ú collationNz COLLATE %sú(%s)ú có—g|]}|®|‘ŒSrörß©rÚcs rærz*MSTypeCompiler._extend..$s€ÐGÐGÐG˜q¸¸˜¸¸¸rç)Úgetattrr“rZr�)rãÚspecÚtype_rZr“s ræÚ_extendzMSTypeCompiler._extendsv€õ �5˜+ tÑ ,Ô ,ð Ø$ u¤Ñ6ˆIˆIàˆIàð "Ø”\ˆFà ð *ؘ& 6™/Ñ)ˆDà�xŠxÐGÐG T¨9Ð$5ÐGÑGÔGÑHÔHÐHrçc ó:—t|dd¦«}|€dSdd|izS)Nr rzFLOAT(%(precision)s)©r™©rãr›rär s ræÚ visit_FLOATzMSTypeCompiler.visit_FLOAT&s.€Ý˜E ;°Ñ5Ô5ˆ Ø Ð Ø�7à)¨[¸)Ð,DÑDÐ Drçc ó—dS)Nrðrß©rãr›räs ræÚ visit_TINYINTzMSTypeCompiler.visit_TINYINT-s€Øˆyrçc ó(—|j� d|jzSdS)NzDATETIMEOFFSET(%s)r<r>r¢s ræÚvisit_DATETIMEOFFSETz#MSTypeCompiler.visit_DATETIMEOFFSET0s€Ø Œ?Ð &Ø'¨%¬/Ñ9Ð 9à#Ð#rçc ó6—t|dd¦«}|�d|zSdS)Nr zTIME(%s)r"ržrŸs ræÚ visit_TIMEzMSTypeCompiler.visit_TIME6s)€Ý˜E ;°Ñ5Ô5ˆ Ø Ð Ø  Ñ)Ð )à�6rçc ó—dS)NrNrßr¢s ræÚvisit_TIMESTAMPzMSTypeCompiler.visit_TIMESTAMP=ó€Øˆ{rçc ó—dS)Nr\rßr¢s ræÚvisit_ROWVERSIONzMSTypeCompiler.visit_ROWVERSION@ó€Øˆ|rçc ó6—t|dd¦«}|�d|zSdS)Nr z DATETIME2(%s)r9ržrŸs ræÚvisit_DATETIME2zMSTypeCompiler.visit_DATETIME2Cs)€Ý˜E ;°Ñ5Ô5ˆ Ø Ð Ø" YÑ.Ð .à�;rçc ó—dS)Nr7rßr¢s ræÚvisit_SMALLDATETIMEz"MSTypeCompiler.visit_SMALLDATETIMEJs€Øˆrçc ó—|j|fi|¤ŽSrö)Úvisit_NVARCHARr¢s ræÚ visit_unicodezMSTypeCompiler.visit_unicodeMs€Ø"ˆtÔ" 5Ð/Ð/¨BÐ/Ð/Ð/rçc óR—|jjr|j|fi|¤ŽS|j|fi|¤ŽSrö)rÚdeprecate_large_typesÚ visit_VARCHARÚ visit_TEXTr¢s ræÚ visit_textzMSTypeCompiler.visit_textPsD€Ø Œ<Ô -ð 0Ø%�4Ô% eÐ2Ð2¨rÐ2Ð2Ð 2à"�4”? 5Ð/Ð/¨BÐ/Ð/Ð /rçc óR—|jjr|j|fi|¤ŽS|j|fi|¤ŽSrö)rr¶r³Ú visit_NTEXTr¢s ræÚvisit_unicode_textz!MSTypeCompiler.visit_unicode_textVsE€Ø Œ<Ô -ð 1Ø&�4Ô& uÐ3Ð3°Ð3Ð3Ð 3à#�4Ô# EÐ0Ð0¨RÐ0Ð0Ð 0rçc ó.—| d|¦«S)Nr_©rœr¢s rær»zMSTypeCompiler.visit_NTEXT\ó€Ø�|Š|˜G UÑ+Ô+Ð+rçc ó.—| d|¦«S)Nrr¾r¢s rær¸zMSTypeCompiler.visit_TEXT_ó€Ø�|Š|˜F EÑ*Ô*Ð*rçc ó@—| d||jpd¬¦«S)NrÚmax©rZ©rœrZr¢s rær·zMSTypeCompiler.visit_VARCHARbs!€Ø�|Š|˜I u°U´\Ð5JÀUˆ|ÑKÔKÐKrçc ó.—| d|¦«S)Nrr¾r¢s ræÚ visit_CHARzMSTypeCompiler.visit_CHARerÁrçc ó.—| d|¦«S)Nrr¾r¢s ræÚ visit_NCHARzMSTypeCompiler.visit_NCHARhr¿rçc ó@—| d||jpd¬¦«S)NrrÃrÄrÅr¢s rær³zMSTypeCompiler.visit_NVARCHARks!€Ø�|Š|˜J¨°e´lÐ6KÀeˆ|ÑLÔLÐLrçc ód—|jjtkr|j|fi|¤ŽS|j|fi|¤ŽSrö)rÚserver_version_infoÚMS_2008_VERSIONÚvisit_DATETIMEÚ visit_DATEr¢s ræÚ visit_datezMSTypeCompiler.visit_datenóG€Ø Œ<Ô +­oÒ =Ð =Ø&�4Ô& uÐ3Ð3°Ð3Ð3Ð 3à"�4”? 5Ð/Ð/¨BÐ/Ð/Ð /rçc ód—|jjtkr|j|fi|¤ŽS|j|fi|¤ŽSrö)rrÌrÍrÎr§r¢s ræÚ visit_timezMSTypeCompiler.visit_timetrÑrçc óR—|jjr|j|fi|¤ŽS|j|fi|¤ŽSrö)rr¶Úvisit_VARBINARYÚ visit_IMAGEr¢s ræÚvisit_large_binaryz!MSTypeCompiler.visit_large_binaryzsE€Ø Œ<Ô -ð 1Ø'�4Ô'¨Ð4Ð4°Ð4Ð4Ð 4à#�4Ô# EÐ0Ð0¨RÐ0Ð0Ð 0rçc ó—dS)Nrcrßr¢s rærÖzMSTypeCompiler.visit_IMAGE€ó€Øˆwrçc ó—dS)Nrfrßr¢s ræÚ visit_XMLzMSTypeCompiler.visit_XMLƒó€Øˆurçc ó@—| d||jpd¬¦«S)NrarÃrÄrÅr¢s rærÕzMSTypeCompiler.visit_VARBINARY†s!€Ø�|Š|˜K¨°u´|Ð7LÀuˆ|ÑMÔMÐMrçc ó,—| |¦«Srö)Ú visit_BITr¢s ræÚ visit_booleanzMSTypeCompiler.visit_boolean‰s€Ø�~Š~˜eÑ$Ô$Ð$rçc ó—dS)Nrhrßr¢s rærßzMSTypeCompiler.visit_BITŒrÜrçc ó—dS)Nrjrßr¢s ræÚ visit_MONEYzMSTypeCompiler.visit_MONEY�rÙrçc ó—dS)Nrlrßr¢s ræÚvisit_SMALLMONEYzMSTypeCompiler.visit_SMALLMONEY’r­rçc ó—dS)Nrnrßr¢s ræÚvisit_UNIQUEIDENTIFIERz%MSTypeCompiler.visit_UNIQUEIDENTIFIER•s€Ø!Ð!rçc ó—dS)Nrprßr¢s ræÚvisit_SQL_VARIANTz MSTypeCompiler.visit_SQL_VARIANT˜s€Øˆ}rçrö)!rérêrërœr r£r¥r§r©r¬r¯r±r´r¹r¼r»r¸r·rÇrÉr³rÐrÓr×rÖrÛrÕràrßrãrårçrérßrçrær‘r‘s뀀€€€ðIðIðIðIð&EðEðEðððð$ð$ð$ð ððððððððððððððð0ð0ð0ð0ð0ð0ð 1ð1ð1ð ,ð,ð,ð+ð+ð+ðLðLðLð+ð+ð+ð,ð,ð,ðMðMðMð0ð0ð0ð 0ð0ð0ð 1ð1ð1ð ððððððNðNðNð%ð%ð%ðððððððððð"ð"ð"ðððððrçr‘cóB—eZdZdZdZdZdZd„Zd„Zd„Z d„Z d„Z d„Z dS) ÚMSExecutionContextFNcó^—|jjs |j |¦«dS|S)Nr)rÚsupports_unicode_statementsÚ_encoder)rãÚ statements ræÚ _opt_encodezMSExecutionContext._opt_encode¢s0€ØŒ|Ô7ð Ø”<×(Ò(¨Ñ3Ô3°AÔ6Ð 6àÐ rçc óØ—|j�r_|jjj}|j}|du}|r°|j|jdvp•|jjjo„|jjjo6|j|jjjdvp||jjjdvp<|jjj o*|j|jjjvp||jjjv|_ nd|_ |jj o|o|jj o|j o|j |_ |j rT|j |j| d|j |¦«z¦«d|¦«dSdSdS)z#Activate IDENTITY_INSERT if needed.NrFzSET IDENTITY_INSERT %s ONrß)ÚisinsertÚcompiledrïrÀÚ_autoincrement_columnr‚Úcompiled_parametersÚ parametersÚ_has_multi_parametersÚ_enable_identity_insertÚinlineÚ returningÚ executemanyÚ_select_lastrowidÚroot_connectionÚ_cursor_executerOrðrFÚ format_table)rãÚtblÚ seq_columnÚinsert_has_sequences ræÚpre_execzMSExecutionContext.pre_exec¨sÜ€ð Œ=ñ3 Ø”-Ô)Ô/ˆCØÔ2ˆJØ",°DÐ"8Ð à"ð 5à”N dÔ&>¸qÔ&AÐAð0ð”MÔ+Ô6ðð!œMÔ3ÔIðà *¤Ø#'¤=Ô#:Ô#EÀaÔ#Hð!Ið!Ià#-Ø#'¤=Ô#:Ô#EÀaÔ#Hð$Ið ð!%¤ Ô 7Ô MÐMðà *¤Ø#'¤=Ô#:Ô#Eð!Fð!Fà#-Ø#'¤=Ô#:Ô#Eð$Fð'Ô,Ð,ð405�Ô,ð”MÔ(Ð(ð)Ø'ð)àœ Ô/Ð/ð)ðÔ4Ð4ð)ðÔ(Ð(ð Ô "ðÔ+ð ØÔ$×4Ò4Ø”KØ×$Ò$Ø3ØÔ2×?Ò?ÀÑDÔDñEñôðØñôððððW3 ð3 ðT ð rçc ó\—|j}|jr€|jjr| |jdd|¦«n| |jdd|¦«|j ¦«d}t|d¦«|_|j s|j s|j r%|j j rtj|¦«|_|jr\| |j| d|j |j jj¦«z¦«d|¦«dSdS)z#Disable IDENTITY_INSERT if enabled.z$SELECT scope_identity() AS lastrowidrßzSELECT @@identity AS lastrowidrúSET IDENTITY_INSERT %s OFFN)rýrürÚuse_scope_identityrþrOÚfetchallr Ú _lastrowidròÚisupdateÚisdeleterórúrÚFullyBufferedResultProxyÚ _result_proxyrørðrFrÿrïrÀ)rãÚconnÚrows ræÚ post_execzMSExecutionContext.post_execàsf€ðÔ#ˆØ Ô !ð *ØŒ|Ô.ð Ø×$Ò$Ø”KØ:ØØñ ôððð×$Ò$Ø”KÐ!AÀ2Àtñôðð”+×&Ò&Ñ(Ô(¨Ô+ˆCÝ! # a¤&™kœkˆDŒOð ŒMð GØ!œ]ð GØ.2¬mð GàŒmÔ%ð Gõ"(Ô!@ÀÑ!FÔ!FˆDÔ à Ô 'ð Ø × Ò Ø” Ø× Ò Ø0ØÔ.×;Ò;Øœ Ô/Ô5ñôññôð Øñ ô ð ð ð ð ð rçcó—|jSrö)r©rãs ræÚ get_lastrowidz MSExecutionContext.get_lastrowids €ØŒÐrçcóê—|jrk |j | d|j |jjj¦«z¦«¦«dS#t$rYdSwxYwdS)Nr) rørOrcrðrFrÿrórïrÀÚ Exception)rãÚes ræÚhandle_dbapi_exceptionz)MSExecutionContext.handle_dbapi_exception s €Ø Ô 'ð ð Ø” ×#Ò#Ø×$Ò$Ø4ØÔ2×?Ò?Ø œMÔ3Ô9ñôññôñôðððøõð ð ð Ø��ð øøøð ð s‰AA"Á" A0Á/A0cóF—|jr|jStj|¦«Srö)r rÚ ResultProxyrs ræÚget_result_proxyz#MSExecutionContext.get_result_proxys'€Ø Ô ð ,ØÔ%Ð %åÔ% dÑ+Ô+Ð +rç) rérêrërørür rrðrrrrrrßrçrærërëœs†€€€€€Ø#ÐØÐØ€MØ€Jðððð 6ð6ð6ðp$ð$ð$ðLððð ð ð ð,ð,ð,ð,ð,rçrëcóz‡—eZdZdZejejjdddddœ¦«Zˆfd„Z ˆfd„Z d „Z d „Z d „Z d „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Ze d,ˆfd„ ¦«Ze ˆfd„¦«Ze d-ˆfd„ ¦«Zd„Zd„Zd„Zd„Zˆfd „Z d!„Z!d"„Z"ˆfd#„Z#d$„Z$d%„Z%d&„Z&d'„Z'd(„Z(d)„Z)d*„Z*d+„Z+ˆxZ,S).Ú MSSQLCompilerTÚ dayofyearÚweekdayÚ millisecondÚ microsecond)ÚdoyÚdowÚ millisecondsÚ microsecondscóV•—i|_tt|¦«j|i|¤ŽdSrö)Ú tablealiasesrárrâ)rãÚargsr$rås €rærâzMSSQLCompiler.__init__+s3ø€ØˆÔØ+��m˜TÑ"Ô"Ô+¨TÐ<°VÐ<Ð<Ð<Ð<Ð.decorate0s`ø€ØŒ|Ô2ð *Ø�r˜$Ð+ Ð+Ð+Ð+¨Ð+Ð+Ð+å ¥¥}°dÑ!;Ô!;¸R¼[ÑIÔI�Ø�v˜sÐ) bÐ)Ð)Ð)rçrß)r*r+rås` €ræÚ_with_legacy_schema_aliasingz*MSSQLCompiler._with_legacy_schema_aliasing/s)øø€ð *ð *ð *ð *ð *ð *ðˆrçc ó—dS)NÚCURRENT_TIMESTAMPrß©rãr*räs ræÚvisit_now_funczMSSQLCompiler.visit_now_func9s€Ø"Ð"rçc ó—dS)Nz GETDATE()rßr/s ræÚvisit_current_date_funcz%MSSQLCompiler.visit_current_date_func<rªrçc ó$—d|j|fi|¤ŽzS©NzLEN%s©Úfunction_argspecr/s ræÚvisit_length_funczMSSQLCompiler.visit_length_func?ó#€ØÐ.˜Ô.¨rÐ8Ð8°RÐ8Ð8Ñ8Ð8rçc ó$—d|j|fi|¤ŽzSr4r5r/s ræÚvisit_char_length_funcz$MSSQLCompiler.visit_char_length_funcBr8rçc óT—|j|jfi|¤Ž›d|j|jfi|¤Ž›�S)Nz + ©rr„r±©rãr…Úoperatorräs ræÚvisit_concat_op_binaryz$MSSQLCompiler.visit_concat_op_binaryEsG€à ˆDŒL˜œÐ +Ð +¨Ð +Ð +Ð +Ð +Ø ˆDŒL˜œÐ ,Ð ,¨Ð ,Ð ,Ð ,ð ð rçc ó—dS)NÚ1rß©rãÚexprräs ræÚ visit_truezMSSQLCompiler.visit_trueKó€Øˆsrçc ó—dS)NÚ0rßrBs ræÚ visit_falsezMSSQLCompiler.visit_falseNrErçc óX—d|j|jfi|¤Ž›d|j|jfi|¤Ž›d�S)Nz CONTAINS (ú, ú)r<r=s ræÚvisit_match_op_binaryz#MSSQLCompiler.visit_match_op_binaryQsL€€à ˆDŒL˜œÐ +Ð +¨Ð +Ð +Ð +Ð +Ø ˆDŒL˜œÐ ,Ð ,¨Ð ,Ð ,Ð ,Ð ,ð ð rçc ó°—d}|jr|dz }|jr&|j�|jr|jdkr |d|jzz }|r|St jj||fi|¤ŽS)z- MS-SQL puts TOP, it's version of LIMIT here Úz DISTINCT NrzTOP %d ) Ú _distinctÚ_simple_int_limitÚ_offset_clauseÚ_simple_int_offsetÚ_offsetÚ_limitrÚ SQLCompilerÚget_select_precolumns)rãr¸räÚss rærVz#MSSQLCompiler.get_select_precolumnsWs”€ð ˆØ Ô ð Ø �Ñ ˆAà Ô #ð +Ø Ô !Ð )ØÔ)ð *Ø.4¬nÀÒ.AÐ.Að �˜Vœ]Ñ*Ñ *ˆAà ð ØˆHåÔ'Ô=Ø�fððØ "ððð rçcó—|Srörß©rãrÀr}s ræÚget_from_hint_textz MSSQLCompiler.get_from_hint_textnó€Øˆ rçcó—|SrörßrYs ræÚget_crud_hint_textz MSSQLCompiler.get_crud_hint_textqr[rçc ó—dS©NrNrß)rãr¸räs ræÚ limit_clausezMSSQLCompiler.limit_clausets€àˆrrçc óX—d|j|jfi|¤Ž›d|j|jfi|¤Ž›d�S)Nz TRY_CAST (z AS rK)rÚclauseÚ typeclause)rãÚelementräs ræÚvisit_try_castzMSSQLCompiler.visit_try_castxsM€€à ˆDŒL˜œÐ .Ð .¨2Ð .Ð .Ð .Ð .Ø ˆDŒL˜Ô+Ð 2Ð 2¨rÐ 2Ð 2Ð 2Ð 2ð ð rçc ó�—|js|j€|j�|jr|j�r‹t |dd¦«�sy|jjstj d¦«‚d„|jjD¦«}|j}|j}||d<|  ¦«}d|_ |  tj ¦« |¬¦« d¦«¦« d¦« ¦«}tj d¦«}tjd „|jD¦«¦«}|�8| ||k¦«|�| |||zk¦«n| ||k¦«|j|fi|¤ŽSt1jj||fi|¤ŽS) z�Look for ``LIMIT`` and OFFSET in a select statement, and if so tries to wrap it in a subquery with ``row_number()`` criterion. NÚ _mssql_visitzLMSSQL requires an order_by when using an OFFSET or a non-simple LIMIT clausecó6—g|]}tj|¦«‘ŒSrß)Úsql_utilÚunwrap_label_reference)rÚelems rærz.MSSQLCompiler.visit_select..”s3€ð!ð!ð!àõÔ/°Ñ5Ô5ð!ð!ð!rçÚselect_wraps_forT©Úorder_byÚmssql_rncó(—g|]}|jdk¯ |‘ŒS)ro)r‚r—s rærz.MSSQLCompiler.visit_select..ªs$€Ð<Ð<Ð<�q¨¬°Ò(;Ð(;�Ð(;Ð(;Ð(;rç)rPÚ _limit_clauserQrRrSr™Ú_order_by_clauseÚclausesrÚ CompileErrorÚ _generatergr@r rÚ ROW_NUMBERrœÚlabelrnÚaliasr¸r˜Úappend_whereclauserrrUÚ visit_select)rãr¸r$Ú_order_by_clausesr`Ú offset_clauseroÚ limitselects rærzzMSSQLCompiler.visit_select~s€ð Ô)ð3 MØ.4Ô.BÐ.NàÔ%Ð1ØÔ1ð2à”>ñ2õ˜& .°$Ñ7Ô7ñ 2ðÔ*Ô2ð ÝÔ&ð#ñôðð !ð!à"Ô3Ô;ð!ñ!ô!Ð ð "Ô/ˆLØ"Ô1ˆMØ)/ˆFÐ%Ñ &Ø×%Ò%Ñ'Ô'ˆFØ"&ˆFÔ à— ’ Ý”H×'Ò'Ñ)Ô)ß’TÐ#4�TÑ5Ô5ß’U˜:Ñ&Ô&ñô÷ ’˜$‘”ß’‘”ð õ”z *Ñ-Ô-ˆHÝœ*Ø<Ð<˜FœHÐ<Ñ<Ô<ñôˆKðÐ(Ø×.Ò.¨x¸-Ò/GÑHÔHÐHØÐ+Ø×2Ò2Ø  \°MÑ%AÒBñôðøð×.Ò.¨x¸LÒ/IÑJÔJÐJØ�4”<  Ð6Ð6¨vÐ6Ð6Ð 6åÔ'Ô4°T¸6ÐLÐLÀVÐLÐLÐ LrçFc óâ•—||us|r!tt|¦«j|fi|¤ŽS| |¦«}|�|j|fd|i|¤ŽStt|¦«j|fi|¤ŽS©NÚ mssql_aliased)rárÚ visit_tableÚ_schema_aliased_tabler)rãrÀr€Úiscrudr$rxrås €rær�zMSSQLCompiler.visit_table¸s—ø€à ˜EÐ !Ð ! VÐ !Ø9•5�¨Ñ-Ô-Ô9¸%ÐJÐJÀ6ÐJÐJÐ Jð×*Ò*¨5Ñ1Ô1ˆØ Ð Ø�4”< ÐEÐE°UÐE¸fÐEÐEÐ Eà9•5�¨Ñ-Ô-Ô9¸%ÐJÐJÀ6ÐJÐJÐ Jrçc óZ•—|j|d<tt|¦«j|fi|¤ŽSr)ÚoriginalrárÚ visit_alias)rãrxrärås €rær†zMSSQLCompiler.visit_aliasÄs6ø€ð$œnˆˆ?ÑØ5�u•] DÑ)Ô)Ô5°eÐBÐB¸rÐBÐBÐBrçNc 󘕗|j�|js|jr| ¦«r~| |j¦«}|�bt j||¦«}|�*||j|j||j|jf|j ¦«tt|¦«j |fi|¤ŽStt|¦«j |fd|i|¤ŽS)NÚadd_to_result_map) rÀr r Ú is_subqueryr‚rÚ_corresponding_column_or_errorÚnamer‚rørárÚ visit_column)rãr@rˆräÚtÚ convertedrås €rærŒzMSSQLCompiler.visit_columnÊsø€ð ŒLÐ $Ø”]ð %Ø+/¬=ð %à×ÒÑ!Ô!ð %ð ×*Ò*¨6¬<Ñ8Ô8ˆA؈}Ý&ÔEØ�vñô� ð%Ð0Ø%Ð%Øœ Øœ Ø ¤¨f¬jÐ9Øœ ñ ôðð?•u�]¨DÑ1Ô1Ô>¸yÐOÐOÈBÐOÐOÐOà6�u•] DÑ)Ô)Ô6Ø ð ð Ø&7ð Ø;=ð ð ð rçcóŒ—t|dd¦«�2||jvr| ¦«|j|<|j|SdS)Nr)r™r%rx)rãrÀs rær‚z#MSSQLCompiler._schema_aliased_tableåsJ€Ý �5˜( DÑ )Ô )Ð 5ؘDÔ-Ð-Ð-Ø+0¯;ª;©=¬=�Ô! %Ñ(ØÔ$ UÔ+Ð +à�4rçc ó€—|j |j|j¦«}d|›d|j|jfi|¤Ž›d�S)Nz DATEPART(rJrK)Ú extract_mapÚgetÚfieldrrC)rãÚextracträr“s ræÚ visit_extractzMSSQLCompiler.visit_extractísK€ØÔ ×$Ò$ W¤]°G´MÑBÔBˆˆØ%* U U¨L¨D¬L¸¼Ð,LÐ,LÈÐ,LÐ,LÐ,LÐ,LÐMÐMrçcó<—d|j |¦«zS)NzSAVE TRANSACTION %s©ÚpreparerÚformat_savepoint©rãÚsavepoint_stmts ræÚvisit_savepointzMSSQLCompiler.visit_savepointñs&€Ø$ t¤}×'EÒ'EØ ñ( ô( ñ ð rçcó<—d|j |¦«zS)NzROLLBACK TRANSACTION %sr—ršs ræÚvisit_rollback_to_savepointz)MSSQLCompiler.visit_rollback_to_savepointös&€Ø(¨4¬=×+IÒ+IØ ñ, ô, ñ ð rçc óN•—t|jtj¦«re|jtjkrPt|jtj¦«s1|jtj|j|j|j¦«fi|¤ŽStt|¦«j |fi|¤ŽS)z]Move bind parameters to the right-hand side of an operator, where possible. ) rr„rÚ BindParameterr>Úeqr±rÚBinaryExpressionrárÚ visit_binary)rãr…r$rås €rær£zMSSQLCompiler.visit_binaryûs­ø€õ �v”{¥JÔ$<Ñ =Ô =ð à”¥8¤;Ò.Ð.ݘvœ|­ZÔ-EÑFÔFð/ð �4”<ÝÔ+Ø”L &¤+¨v¬ñôðððð ðð ð 7�u•] DÑ)Ô)Ô6°vÐHÐHÀÐHÐHÐHrçcó&‡‡—‰js‰jr|j d¦«}n|j d¦«}t j|¦«Šˆˆfd„t j|¦«D¦«}dd |¦«zS)NÚinsertedÚdeletedc óh•—g|].}‰ d‰ |¦«ddi¦«‘Œ/S)NTF)Ú_label_select_columnÚtraverse)rr˜Úadapterrãs €€rærz2MSSQLCompiler.returning_clause..sTø€ð ð ð ðð × %Ò %Ø�g×&Ò& qÑ)Ô)¨4°¸ñ ô ð ð ð rçzOUTPUT rJ) ròr rÀrxriÚ ClauseAdapterrÚ_select_iterablesr�)rãÚstmtÚreturning_colsÚtargetÚcolumnsrªs` @ræÚreturning_clausezMSSQLCompiler.returning_clause s¦øø€à Œ=ð 1˜DœMð 1Ø”Z×%Ò% jÑ1Ô1ˆFˆFà”Z×%Ò% iÑ0Ô0ˆFåÔ(¨Ñ0Ô0ˆð ð ð ð ð õ Ô1°.ÑAÔAð  ñ ô ˆð˜4Ÿ9š9 WÑ-Ô-Ñ-Ð-rçcó—dS)NÚWITHrß)rãÚ recursives ræÚget_cte_preamblezMSSQLCompiler.get_cte_preambles €ð ˆvrçcó¶•—t|tj¦«r| d¦«St t |¦« |||¦«Srö)rrÚFunctionrwrárÚlabel_select_column)rãr¸r@Úasfrområs €rær¸z!MSSQLCompiler.label_select_column&sSø€Ý �f�jÔ1Ñ 2Ô 2ð Ø—<’< Ñ%Ô%Ð %å�¨Ñ-Ô-×AÒAؘ ñôð rçcó—dSr_rß)rãr¸s ræÚfor_update_clausezMSSQLCompiler.for_update_clause.s €ðˆrrçc ót—| ¦«r |jsdS|j|jfi|¤Ž}|rd|zSdS)NrNz ORDER BY )r‰rTrrr)rãr¸rärns ræÚorder_by_clausezMSSQLCompiler.order_by_clause3sZ€à × Ò Ñ Ô ð  f¤mð ð�2à�4”< Ô 7Ð>Ð>¸2Ð>Ð>ˆà ð Ø (Ñ*Ð *à�2rçc ó\‡‡‡—dd ˆˆˆfd„|g|zD¦«¦«zS)aRender the UPDATE..FROM clause specific to MSSQL. In MSSQL, if the UPDATE statement involves an alias of the table to be updated, then the table itself must be added to the FROM list as well. Otherwise, it is optional. Here, we add it regardless. úFROM rJc3ó:•K—|]}|j‰fd‰dœ‰¤ŽV—ŒdS©T)r¹Ú fromhintsN©Ú_compiler_dispatch©rr�Ú from_hintsrärãs €€€ræú z3MSSQLCompiler.update_from_clause..LóSøèè€ð# ð# àð !ˆAÔ  Ð O¨d¸jÐ OÐ OÈBÐ OÐ Oð# ð# ð# ð# ð# ð# rç©r�)rãÚ update_stmtÚ from_tableÚ extra_fromsrÆräs` ``ræÚupdate_from_clausez MSSQLCompiler.update_from_clauseBs[øøø€ð˜Ÿšð# ð# ð# ð# ð# ð# à �\ KÑ/ð# ñ# ô# ñ ô ñ ð rçcó@—d}|rd}| |dd|¬¦«S)z=If we have extra froms make sure we render any alias as hint.FT)r¹rƒÚashintrÃ)rãÚ delete_stmtrËrÌrÏs ræÚdelete_table_clausez!MSSQLCompiler.delete_table_clauseQs:€àˆØ ð ØˆFØ×,Ò,Ø ˜ d°6ð-ñ ô ð rçc ó\‡‡‡—dd ˆˆˆfd„|g|zD¦«¦«zS)zjRender the DELETE .. FROM clause specific to MSSQL. Yes, it has the FROM keyword twice. r¿rJc3ó:•K—|]}|j‰fd‰dœ‰¤ŽV—ŒdSrÁrÃrÅs €€€rærÇz9MSSQLCompiler.delete_extra_from_clause..brÈrçrÉ)rãrÐrËrÌrÆräs` ``ræÚdelete_extra_from_clausez&MSSQLCompiler.delete_extra_from_clauseZs[øøø€ð˜Ÿšð# ð# ð# ð# ð# ð# à �\ KÑ/ð# ñ# ô# ñ ô ñ ð rçcó—dS)NzSELECT 1 WHERE 1!=1rß)rãr›s ræÚvisit_empty_set_exprz"MSSQLCompiler.visit_empty_set_exprgs€Ø$Ð$rçc ót—d| |j¦«›d| |j¦«›d�S)NzNOT EXISTS (SELECT ú INTERSECT SELECT rKr<r=s ræÚvisit_is_distinct_from_binaryz+MSSQLCompiler.visit_is_distinct_from_binaryjó<€€à �LŠL˜œÑ %Ô %Ð %Ð %Ø �LŠL˜œÑ &Ô &Ð &Ð &ð ð rçc ót—d| |j¦«›d| |j¦«›d�S)NzEXISTS (SELECT rØrKr<r=s ræÚ visit_isnot_distinct_from_binaryz.MSSQLCompiler.visit_isnot_distinct_from_binaryprÚrç)FFrö)-rérêrëÚreturning_precedes_valuesr Ú update_copyrrUr‘râr,r0r2r7r:r?rDrHrLrVrZr]r`rerzr�r†rŒr‚r•rœržr£r±rµr¸r»r½rÍrÑrÔrÖrÙrÜrírîs@rærrsóø€€€€€Ø $Ðà"�$Ô"ØÔÔ(àØØ)Ø)ð  ð ñô€Kð=ð=ð=ð=ð=ðððððð#ð#ð#ðððð9ð9ð9ð9ð9ð9ð ð ð ð ðððððð ð ð ð ððð.ððððððððð ð ð ð 8Mð8Mð8Mðt"ð Kð Kð Kð Kð Kñ"Ô!ð Kð"ðCðCðCðCñ"Ô!ðCð "ð ð ð ð ð ñ"Ô!ð ð4ðððNðNðNð ð ð ð  ð ð ð IðIðIðIðIð$.ð.ð.ð$ððððððððððð ð ð ð  ð  ð  ð ð ð ð  ð  ð  ð%ð%ð%ð ð ð ð  ð ð ð ð ð ð rçrcó2‡—eZdZdZdZd„Zd„Zˆfd„ZˆxZS)ÚMSSQLStrictCompilerzËA subclass of MSSQLCompiler which disables the usage of bind parameters where not allowed natively by MS-SQL. A dialect may use this compiler on a platform where native binds are used. Tc ó^—d|d<|j|jfi|¤Ž›d|j|jfi|¤Ž›�S)NTÚ literal_bindsz IN r<r=s ræÚvisit_in_op_binaryz&MSSQLStrictCompiler.visit_in_op_binaryƒóQ€Ø"ˆˆ?Ñà ˆDŒL˜œÐ +Ð +¨Ð +Ð +Ð +Ð +Ø ˆDŒL˜œÐ ,Ð ,¨Ð ,Ð ,Ð ,ð ð rçc ó^—d|d<|j|jfi|¤Ž›d|j|jfi|¤Ž›�S)NTrâz NOT IN r<r=s ræÚvisit_notin_op_binaryz)MSSQLStrictCompiler.visit_notin_op_binaryŠrärçcóΕ—tt|¦«tj¦«rdt |¦«zdzSt t |¦« ||¦«S)a5 For date and datetime values, convert to a string format acceptable to MSSQL. That seems to be the so-called ODBC canonical date format which looks like this: yyyy-mm-dd hh:mi:ss.mmm(24h) For other data types, call the base class implementation. rC)Ú issubclassrørùrúr*ráràÚrender_literal_value)rãrÿr›rås €ræréz(MSSQLStrictCompiler.render_literal_value‘s]ø€õ •d˜5‘k”k¥8¤=Ñ 1Ô 1ð à�˜U™œÑ# cÑ)Ð )åÕ,¨dÑ3Ô3×HÒHØ�uñôð rç) rérêrërYÚansi_bind_rulesrãrærérírîs@ræràràwsgø€€€€€ððð€Oð ð ð ð ð ð ðððððððððrçràcó4—eZdZd„Zd d„Zd„Zd„Zd„Zd„ZdS) Ú MSDDLCompilerc ó®—|j |¦«}|j�!|d| |j¦«zz }n,|d|jj |j|¬¦«zz }|j�H|jr/|js(t|j tj ¦«s |j dur|dz }n |j€|dz }|j€tjd¦«‚t|j tj ¦«rt|j j€|j j€||jjurt)jd¦«|j jdkrd}n|j jpd }|d |›d |j jpd ›d �z }ni||jjus |j dur3|jd d}|jd d}|d |›d |›d �z }n| |¦«}|�|d|zz }|S)Nr•)Útype_expressionTz NOT NULLz NULLz;mssql requires Table-bound columns in order to generate DDLa Use of Sequence with SQL Server in order to affect the parameters of the IDENTITY value is deprecated, as Sequence will correspond to an actual SQL Server CREATE SEQUENCE in a future release. Please use the mssql_identity_start and mssql_identity_increment parameters.rrz IDENTITY(ú,rKÚmssqlÚidentity_startÚidentity_incrementz DEFAULT )r˜Ú format_columnÚcomputedrrÚ type_compilerrøÚnullableÚ primary_keyrr Ú sa_schemaÚSequenceÚ autoincrementrÀrrtÚstartÚ incrementrôr Úwarn_deprecatedÚdialect_optionsÚget_column_default_string)rãr@r$Úcolspecrûrür s ræÚget_column_specificationz&MSDDLCompiler.get_column_specification§s;€Ø”-×-Ò-¨fÑ5Ô5ˆð Œ?Ð &Ø �s˜TŸ\š\¨&¬/Ñ:Ô:Ñ:Ñ :ˆGˆGà �s˜Tœ\Ô7×?Ò?Ø” ¨Vð@ñôññ ˆGð Œ?Ð &à”Oð #àÔ%ð #õ˜fœn­iÔ.@ÑAÔAð #ðÔ'¨4Ð/Ð/à˜;Ñ&��Ø”Ð(à˜7Ñ"�à Œ<Ð ÝÔ"ð+ñôð õ �f”n¥iÔ&8Ñ 9Ô 9ð# 1ð”Ô$Ð0Ø”>Ô+Ð7Ø ¤Ô!CÐCÐCåÔ$ð?ñôððŒ~Ô# qÒ(Ð(Ø��àœÔ,Ð1°�à ˆGØ��Ø”Ô(Ð-¨AÐ-Ð-ðñ ˆGˆGð �f”lÔ8Ð 8Ð 8ØÔ# tÐ+Ð+àÔ*¨7Ô3Ð4DÔEˆEØÔ.¨wÔ7Ð8LÔMˆIØ ˆG¨U¨U¨U°I°I°IÐ>Ñ >ˆGˆGà×4Ò4°VÑ<Ô<ˆGØÐ"ؘ;¨Ñ0Ñ0�àˆrçFc 󘇇‡ —|jЉ ‰¦«‰jŠ d}‰jr|dz }‰jdd}|� |r|dz }n|dz }|d‰ ‰|¬¦«›d ‰  ‰j¦«›d d  ˆfd „‰j D¦«¦«›d �z }‰jddrFˆfd„‰jddD¦«}|dd  ˆ fd„|D¦«¦«zz }‰jdd}|�%‰j   |dd¬¦«}|d|zz }|S)NzCREATE úUNIQUE rðr=ú CLUSTERED ú NONCLUSTERED zINDEX ©Úinclude_schemaú ON z (rJc3óR•K—|]!}‰j |dd¬¦«V—Œ"dS)FT©Ú include_tablerâN)Ú sql_compilerr)rrCrãs €rærÇz3MSDDLCompiler.visit_create_index..sXøèè€ððððÔ!×)Ò)ب¸Tð*ñôððððððrçrKÚincludecól•—g|]0}t|tj¦«r‰jj|n|‘Œ1Srß)rr rrÀr˜)rÚcolr{s €rærz4MSDDLCompiler.visit_create_index.. sNø€ððððõ˜c¥4Ô#4Ñ5Ô5ð�” ” ˜cÔ"Ð"àðððrçz INCLUDE (%s)cóD•—g|]}‰ |j¦«‘ŒSrß)Úquoter‹)rr˜r˜s €rærz4MSDDLCompiler.visit_create_index..s'ø€Ð<Ð<Ð<¨A�—’ ¤Ñ'Ô'Ð<Ð<Ð.6óFøèè€ð# ð# Ø,-ˆDŒM× Ò  ¤Ñ 'Ô 'ð# ð# ð# ð# ð# ð# rç©Úlenr‹r˜Úformat_constraintrþr�Údefine_constraint_deferrability)rãrCr}r=s` ræÚvisit_primary_key_constraintz*MSDDLCompiler.visit_primary_key_constraint%s÷ø€Ý ˆz‰?Œ?˜aÒ Ð Ø�2ØˆØ Œ?Ð &Ø Ð$ t¤}×'FÒ'FØñ(ô(ññ ˆDð �шàÔ.¨wÔ7¸ ÔDˆ Ø Ð Øð (ؘ Ñ$��à˜Ñ'�à �˜Ÿšð# ð# ð# ð# Ø1;ð# ñ# ô# ñ ô ñ ñ ˆð �×4Ò4°ZÑ@Ô@Ñ@ˆØˆ rçcóX‡—t|¦«dkrdSd}|j�$‰j |¦«}|�|d|zz }|dz }|jdd}|� |r|dz }n|dz }|d d  ˆfd „|D¦«¦«zz }|‰ |¦«z }|S) NrrNrrrðr=rrr”rJc3óV•K—|]#}‰j |j¦«V—Œ$dSrörrs €rærÇz8MSDDLCompiler.visit_unique_constraint..Mr rçr!)rãrCr}Úformatted_namer=s` ræÚvisit_unique_constraintz%MSDDLCompiler.visit_unique_constraint<s÷ø€Ý ˆz‰?Œ?˜aÒ Ð Ø�2ØˆØ Œ?Ð &Ø!œ]×<Ò<¸ZÑHÔHˆNØÐ)ØÐ(¨>Ñ9Ñ9�Ø � шàÔ.¨wÔ7¸ ÔDˆ Ø Ð Øð (ؘ Ñ$��à˜Ñ'�à �˜Ÿšð# ð# ð# ð# Ø1;ð# ñ# ô# ñ ô ñ ñ ˆð �×4Ò4°ZÑ@Ô@Ñ@ˆØˆ rçcól—d|j |jdd¬¦«z}|jdur|dz }|S)NzAS (%s)FTr z PERSISTED)r rÚsqltextÚ persisted)rãÚ generatedr}s ræÚvisit_computed_columnz#MSDDLCompiler.visit_computed_columnSsO€Ø˜4Ô,×4Ò4Ø Ô ¨UÀ$ð5ñ ô ñ ˆð Ô  $Ð &Ð &Ø �LÑ ˆD؈ rçNrX) rérêrërrrr%r)r.rßrçrærìrì¦sx€€€€€ðDðDðDðL0ð0ð0ð0ðd ð ð ð ððð.ððð.ððððrçrìcó6‡—eZdZeZˆfd„Zd„Zd„Zdd„ZˆxZ S)ÚMSIdentifierPreparercó`•—tt|¦« |ddd¬¦«dS)Nú[ú]F)Ú initial_quoteÚ final_quoteÚquote_case_sensitive_collations)rár0râ)rãrrås €rærâzMSIdentifierPreparer.__init__`sAø€Ý Õ" DÑ)Ô)×2Ò2Ø ØØØ,1ð 3ñ ô ð ð ð rçcó.—| dd¦«S)Nr3ú]]©rE©rãrÿs ræÚ_escape_identifierz'MSIdentifierPreparer._escape_identifierhs€Ø�}Š}˜S $Ñ'Ô'Ð'rçcó.—| dd¦«S)Nr8r3r9r:s ræÚ_unescape_identifierz)MSIdentifierPreparer._unescape_identifierks€Ø�}Š}˜T 3Ñ'Ô'Ð'rçNcóê—|�tjd¦«t|¦«\}}|r.| |¦«›d| |¦«›�}n|r| |¦«}nd}|S)z'Prepare a quoted table and schema name.NzÚThe IdentifierPreparer.quote_schema.force parameter is deprecated and will be removed in a future release. This flag has no effect on the behavior of the IdentifierPreparer.quote method; please refer to quoted_name().ú.rN)r rýÚ_schema_elementsr)rãrÚforceÚdbnameÚownerÚresults ræÚ quote_schemaz!MSIdentifierPreparer.quote_schemans“€ð Ð õ Ô ð!ñ ô ð õ)¨Ñ0Ô0‰ ˆ�Ø ð Ø $§ ¢ ¨6Ñ 2Ô 2Ð 2Ð 2°D·J²J¸uÑ4EÔ4EÐ4EÐFˆFˆFØ ð Ø—Z’Z Ñ&Ô&ˆFˆFàˆF؈ rçrö) rérêrëÚRESERVED_WORDSÚreserved_wordsrâr;r=rErírîs@rær0r0]soø€€€€€Ø#€Nð ð ð ð ð ð(ð(ð(ð(ð(ð(ððððððððrçr0có0‡—dˆfd„ }t|‰¦«S)Nc óR•—t||¦«\}}t||‰|||||fi|¤ŽSrö©Ú_owner_plus_dbÚ _switch_db)rÚ connectionrrärBrCr*s €ræÚwrapz$_db_plus_owner_listing..wrap‰sOø€Ý& w°Ñ7Ô7‰ ˆ�ÝØ Ø Ø Ø Ø Ø Ø Ø ð  ð  ðð  ð  ð rçrör ©r*rNs` ræÚ_db_plus_owner_listingrPˆs3ø€ð  ð  ð  ð  ð  ð  õ ˜$ Ñ #Ô #Ð#rçcó0‡—dˆfd„ }t|‰¦«S)Nc óT•—t||¦«\}}t||‰||||||f i|¤ŽSrörJ)rrMÚ tablenamerrärBrCr*s €rærNz_db_plus_owner..wrap›sRø€Ý& w°Ñ7Ô7‰ ˆ�ÝØ Ø Ø Ø Ø Ø Ø Ø Ø ð  ð  ðð  ð  ð rçrör rOs` ræÚ_db_plus_ownerrTšs3ø€ð  ð  ð  ð  ð  ð  õ ˜$ Ñ #Ô #Ð#rçcó¾—|rP| d¦«}||kr5| d|jj |¦«z¦« ||i|¤Ž|r<||kr7| d|jj |¦«z¦«SSS#|r<||kr7| d|jj |¦«z¦«wwwxYw)Nzselect db_name()zuse %s)ÚscalarrcrrFr)rBrMr*ruräÚ current_dbs rærLrL­s"€Ø ðØ×&Ò&Ð'9Ñ:Ô:ˆ Ø ˜Ò Ð Ø × Ò Ø˜:Ô-ÔA×GÒGÈÑOÔOÑOñ ô ð ð؈r�3ˆ~˜"ˆ~ˆ~à ð �j FÒ*Ð*Ø × Ò ØØÔ$Ô8×>Ò>¸zÑJÔJñKñ ô ð ð ð Ð*øˆ6ð �j FÒ*Ð*Ø × Ò ØØÔ$Ô8×>Ò>¸zÑJÔJñKñ ô ð ð ð Ð*øøøs ÁBÂACcóF—|s d|jfSd|vrt|¦«Sd|fS)Nr?)Údefault_schema_namer@)rrs rærKrK¾s9€Ø ðØ�WÔ0Ð0Ð0Ø �ˆˆÝ Ñ'Ô'Ð'à�Vˆ|Ðrçcó —t|t¦«r |jrd|fS|tvr t|Sg}d}d}d}t jd|¦«D][}|sŒ|dkrd}d}Œ|dkrd}Œ|s;|dkr5|r| d|z¦«n| |¦«d}d}ŒV||z }Œ\|r| |¦«t|¦«d kr}d |d d …¦«|d }}t j d |d d …¦«rt|d¬ ¦«}nH|  d¦«  d¦«}nt|¦«r d|d }}nd\}}||ft|<||fS)NrNFz (\[|\]|\.)r2Tr3r?z[%s]rréÿÿÿÿz .*\].*\[.*©r)NN) rrrÚ_memoized_schemarÚsplitÚappendr"r�rÚlstripÚrstrip)rÚpushÚsymbolÚbracketÚ has_bracketsÚtokenrBrCs rær@r@ÊsÕ€Ý�&�+Ñ&Ô&ð¨6¬<ðØ�Vˆ|Ðà Õ!Ð!Ð!Ý Ô'Ð'ð €DØ €FØ€GØ€LÝ”˜-¨Ñ0Ô0ððˆØð Ø Ø �CŠ<ˆ<؈G؈LˆLØ �cŠ\ˆ\؈GˆGØð ˜U cš\˜\Øð $Ø— ’ ˜F V™OÑ,Ô,Ð,Ð,à— ’ ˜FÑ#Ô#Ð#؈FØ ˆLˆLà �e‰OˆFˆFØ ðØ � Š �FÑÔÐÝ ˆ4�y„y�1‚}€}ØŸš  a¨ d¤Ñ,Ô,¨d°2¬h�ˆõ Œ8�M 6¨!¨B¨$¤<Ñ 0Ô 0ð 4Ý  ¨uÐ5Ñ5Ô5ˆFˆFà—]’] 3Ñ'Ô'×.Ò.¨sÑ3Ô3ˆFˆFå ˆT‰Œð#ؘd 1œg�ˆˆà"‰ ˆ�à% u˜}Õ�VÑØ �5ˆ=Ðrçc óD‡—eZdZdZdZdZeZdZdZ dZ e j e e jee jee jee jeiZejj dejfg¦«ZeZdZdZdZ dZ!dZ"dZ#e$Z%e&Z'e(Z)e*Z+e,j-dd ife,j.dd ife,j/d d d d œfe,j0d d d œfgZ1 d!ˆfd „ Z2ˆfd„Z3d„Z4e5gd¢¦«Z6d„Z7d„Z8ˆfd„Z9d„Z:d„Z;d„Zd„¦«Z?e@jAd„¦«ZBe@jAeCd„¦«¦«ZDe@jAeCd„¦«¦«ZEe@jAe>d„¦«¦«ZFe@jAe>d„¦«¦«ZGe@jAe>d„¦«¦«ZHe@jAe>d„¦«¦«ZIe@jAe>d „¦«¦«ZJˆxZKS)"Ú MSDialectrðTFé€Údbor)rßr=N)r=r r×r)rñròc 󺕗t|pd¦«|_||_||_||_||_t t|¦«jdi|¤Ž||_ dS)Nrrß) r Ú query_timeoutÚ schema_namerr¶r)rárhrâÚisolation_level) rãrlrrmrnr¶r)Úoptsrås €rærâzMSDialect.__init__, skø€õ! Ð!3°!Ñ4Ô4ˆÔØ&ˆÔà"4ˆÔØ%:ˆÔ"Ø&<ˆÔ#à'��i˜ÑÔÔ'Ð/Ð/¨$Ð/Ð/Ð/à.ˆÔÐÐrçcó„•—| d¦«tt|¦« ||¦«dS)Nz$IF @@TRANCOUNT = 0 BEGIN TRANSACTION)rcrárhÚ do_savepoint)rãrMr‹rås €rærqzMSDialect.do_savepointA s>ø€à×ÒÐAÑBÔBÐBÝ �i˜ÑÔ×+Ò+¨J¸Ñ=Ô=Ð=Ð=Ð=rçcó—dSrörß)rãrMr‹s ræÚdo_release_savepointzMSDialect.do_release_savepointF s€à ˆrç)Ú SERIALIZABLEzREAD UNCOMMITTEDzREAD COMMITTEDzREPEATABLE READÚSNAPSHOTc óp—| dd¦«}||jvr:tjd|›d|j›dd |j¦«›�¦«‚| ¦«}| d|z¦«| ¦«|dkr|  ¦«dSdS) NÚ_r•zInvalid value 'z2' for isolation_level. Valid isolation levels for z are rJz"SET TRANSACTION ISOLATION LEVEL %sru) rEÚ_isolation_lookuprÚ ArgumentErrorr‹r�rOrcr<rA)rãrMÚlevelrOs ræÚset_isolation_levelzMSDialect.set_isolation_levelT sɀؗ ’ ˜c 3Ñ'Ô'ˆØ ˜Ô.Ð .Ð .ÝÔ#Ð#ð�5�5˜$œ)˜)˜) T§Y¢Y¨tÔ/EÑ%FÔ%FÐ%FðHñôð ð ×"Ò"Ñ$Ô$ˆØ�ŠÐ;¸eÑCÑDÔDÐDØ� Š ‰ŒˆØ �JÒ Ð Ø × Ò Ñ Ô Ð Ð Ð ð Ð rçcó&—|jtkrtd¦«‚d}d}|D]½}| ¦«} | d|z¦«| ¦«d}| ¦«| ¦«cS#|jj $r }|}Yd}~| ¦«Œ�d}~wwxYw#| ¦«wxYwtj d|›d|›�¦«td|›d|›�¦«‚)Nz4Can't fetch isolation level prior to SQL Server 2005)zsys.dm_exec_sessionszsys.dm_pdw_nodes_exec_sessionsaÏ SELECT CASE transaction_isolation_level WHEN 0 THEN NULL WHEN 1 THEN 'READ UNCOMMITTED' WHEN 2 THEN 'READ COMMITTED' WHEN 3 THEN 'REPEATABLE READ' WHEN 4 THEN 'SERIALIZABLE' WHEN 5 THEN 'SNAPSHOT' END AS TRANSACTION_ISOLATION_LEVEL FROM %s where session_id = @@SPID rz:Could not fetch transaction isolation level, tried views: z; final error was: zPCan't fetch isolation level on this particular SQL Server version. tried views: ) rÌÚMS_2005_VERSIONÚNotImplementedErrorrOrcÚfetchoneÚupperr<ÚdbapiÚErrorr Úwarn)rãrMÚ last_errorÚviewsrÔrOÚvalÚerrs ræÚget_isolation_levelzMSDialect.get_isolation_levelb s]€Ø Ô #¥oÒ 5Ð 5Ý%ØFñôð ðˆ àJˆØð% ð% ˆDØ×&Ò&Ñ(Ô(ˆFð Ø—’ð ðñ ñ ô ð ð—o’oÑ'Ô'¨Ô*�ð —y’y‘{”{à— ’ ‘”����øð”:Ô#ð ð ð à � Ø���ð— ’ ‘”��øøøøð øøøøð— ’ ‘”��øøøõ ŒIˆIà:?¸%¸%ÀÀðMñ ô ð õ&Ð%ð�5�5˜*˜*ð&ñôð s/½2BÁ/C ÂCÂ(CÂ*C ÃCÃC à C!c󪕗tt|¦« |¦«| ¦«| |¦«dSrö)rárhÚ initializeÚ_setup_version_attributesÚ_setup_supports_nvarchar_max)rãrMrås €rærŠzMSDialect.initialize’ sMø€Ý �i˜ÑÔ×)Ò)¨*Ñ5Ô5Ð5Ø ×&Ò&Ñ(Ô(Ð(Ø ×)Ò)¨*Ñ5Ô5Ð5Ð5Ð5rçcó$‡—‰j�ˆfd„}|SdS)Ncó>•—‰ |‰j¦«dSrö)r{rn)r rãs €ræÚconnectz%MSDialect.on_connect..connectš s"ø€Ø×(Ò(¨¨tÔ/CÑDÔDÐDÐDÐDrç)rn)rãr�s` ræÚ on_connectzMSDialect.on_connect— s6ø€Ø Ô Ð +ð Eð Eð Eð Eð EðˆNà�4rçcóv—|jdttdd¦«¦«vr9tjdd d„|jD¦«¦«z¦«|jt krd|jvrd|_|jtkrd|_ |j €|jtk|_ dSdS) Nrr(éz[Unrecognized server version info '%s'. Some SQL Server features may not function properly.r?c3ó4K—|]}t|¦«V—ŒdSrö)r*r s rærÇz6MSDialect._setup_version_attributes..¦ s(èè€ÐDÐD a�3˜q™6œ6ÐDÐDÐDÐDÐDÐDrçÚimplicit_returningT) rÌÚlistÚranger rƒr�r}Ú__dict__r”rÍÚsupports_multivalues_insertr¶ÚMS_2012_VERSIONrs rær‹z#MSDialect._setup_version_attributes¡ sÊ€Ø Ô # AÔ &­dµ5¸¸B±<´<Ñ.@Ô.@Ð @Ð @Ý ŒIð6à—(’(ÐDÐD¨4Ô+CÐDÑDÔDÑDÔDñEñ ô ð ð Ô $­Ò 7Ð 7Ø$¨D¬MÐ9Ð9à&*ˆDÔ #Ø Ô #¥Ò 6Ð 6Ø/3ˆDÔ ,Ø Ô %Ð -àÔ(­OÒ;ð Ô &Ð &Ð &ð .Ð -rçcóž— | tjd¦«¦«d|_dS#tj$r d|_YdSwxYw)Nz0SELECT CAST('test max support' AS NVARCHAR(max))TF)rVr r}Ú_supports_nvarchar_maxrÚ DBAPIError)rãrMs rærŒz&MSDialect._setup_supports_nvarchar_max´ sm€ð /Ø × Ò Ý”ÐKÑLÔLñ ô ð ð +/ˆDÔ 'Ð 'Ð 'øõŒ~ð 0ð 0ð 0Ø*/ˆDÔ 'Ð 'Ð 'Ð 'ð 0øøøs‚'2²A Á A có¶—|jtkr|jStjd¦«}| |¦«}|�t |d¬¦«S|jS)NzSELECT schema_name()Tr\)rÌr}rmr r}rVr)rãrMÚqueryrYs ræÚ_get_default_schema_namez"MSDialect._get_default_schema_name¾ sb€Ø Ô #¥oÒ 5Ð 5ØÔ#Ð #å”HÐ3Ñ4Ô4ˆEØ",×"3Ò"3°EÑ":Ô":Ð Ø"Ð.õ#Ð#6¸dÐCÑCÔCÐCàÔ'Ð'rçcó—tj}|jj|k}|r#t j||jj|k¦«}t j|g|¦«}| |¦«} |   ¦«duSrö) Úischemar°r˜Ú table_namer Úand_Ú table_schemar¸rcÚfirst) rãrMrSrBrCrr°rrWr˜s ræÚ has_tablezMSDialect.has_tableË s{€å”/ˆà”iÔ*¨iÒ7ˆ à ð Ýœ(ؘWœYÔ3°uÒ<ñôˆKõ ŒJ˜�y +Ñ .Ô .ˆØ × Ò ˜qÑ !Ô !ˆØ�wŠw‰yŒy Ð$Ð$rçc óÄ—tjtjjjgtjjjg¬¦«}d„| |¦«D¦«}|S)Nrmcó—g|] }|d‘Œ Sr rß©rÚrs rærz.MSDialect.get_schema_names..ß s€Ð<Ð<Ð< ˜˜!œÐ<Ð<Ð.î s€Ð;Ð;Ð; �q˜”tÐ;Ð;Ð;rç© r¡Útablesr r¸r˜r¢r£r¤Ú table_typerc) rãrMrBrCrrär±rWÚ table_namess ræÚget_table_nameszMSDialect.get_table_namesâ s‹€õ”ˆÝ ŒJØ ŒXÔ Ð !Ý ŒHØ”Ô%¨Ò.Ø”Ô# |Ò3ñ ô ð”hÔ)Ð*ð  ñ ô ˆð<Ð; Z×%7Ò%7¸Ñ%:Ô%:Ð;Ñ;Ô;ˆ ØÐrçc ó—tj}tj|jjgtj|jj|k|jjdk¦«|jjg¬¦«}d„|  |¦«D¦«}|S)NÚVIEWrmcó—g|] }|d‘Œ Sr rßr©s rærz,MSDialect.get_view_names..ü s€Ð:Ð:Ð:˜q�a˜”dÐ:Ð:Ð:rçr°) rãrMrBrCrrär±rWÚ view_namess ræÚget_view_nameszMSDialect.get_view_namesñ sŠ€õ”ˆÝ ŒJØ ŒXÔ Ð !Ý ŒHØ”Ô%¨Ò.°´Ô0CÀvÒ0Mñ ô ð”hÔ)Ð*ð  ñ ô ˆð;Ð: J×$6Ò$6°qÑ$9Ô$9Ð:Ñ:Ô:ˆ ØÐrçc óÔ—|jtkrgS| tjd¦« tjd|tj¦«¦«tjd|tj¦«¦«¦«  tj ¦«¬¦«¦«}i}|D]!} | d| ddkgdœ|| d <Œ"| tjd ¦« tjd|tj¦«¦«tjd|tj¦«¦«¦«  tj ¦«¬¦«¦«}|D]9} | d |vr-|| d d   | d¦«Œ:t| ¦«¦«S) Na select ind.index_id, ind.is_unique, ind.name from sys.indexes as ind join sys.tables as tab on ind.object_id=tab.object_id join sys.schemas as sch on sch.schema_id=tab.schema_id where tab.name = :tabname and sch.name=:schname and ind.is_primary_key=0 and ind.type != 0ÚtabnameÚschname)r‹r‹Ú is_uniquer)r‹rÌÚ column_namesÚindex_idaRselect ind_col.index_id, ind_col.object_id, col.name from sys.columns as col join sys.tables as tab on tab.object_id=col.object_id join sys.index_columns as ind_col on (ind_col.column_id=col.column_id and ind_col.object_id=tab.object_id) join sys.schemas as sch on sch.schema_id=tab.schema_id where tab.name=:tabname and sch.name=:schnamer¾)rÌr}rcr r}Ú bindparamsÚ bindparamr¡Ú CoerceUnicoder°ÚsqltypesÚUnicoder_r•rÒ) rãrMrSrBrCrräÚrpÚindexesrs ræÚ get_indexeszMSDialect.get_indexesÿ sÏ€ð Ô #¥oÒ 5Ð 5؈Ià × Ò Ý ŒHð=ñ ô ÷ŠZÝ” ˜i¨µGÔ4IÑ4KÔ4KÑLÔLÝ” ˜i¨µÔ0EÑ0GÔ0GÑHÔHñô÷ŠW�(Ô*Ñ,Ô,ˆWÑ -Ô -ñ ô ˆð ˆØð ð ˆCà˜Fœ ؘkÔ*¨aÒ/Ø "ð(ð(ˆG�C˜ ”OÑ $Ð $ð × Ò Ý ŒHð(ñ ô ÷ŠZÝ” ˜i¨µGÔ4IÑ4KÔ4KÑLÔLÝ” ˜i¨µÔ0EÑ0GÔ0GÑHÔHñô÷ŠW�(Ô*Ñ,Ô,ˆWÑ -Ô -ñ! ô ˆð$ð Mð MˆCØ�:Œ 'Ð)Ð)ؘ˜JœÔ(¨Ô8×?Ò?ÀÀFÄ ÑLÔLÐLøå�G—N’NÑ$Ô$Ñ%Ô%Ð%rçc ó@—| tjd¦« tjd|t j¦«¦«tjd|t j¦«¦«¦«¦«}|r| ¦«}|SdS)NzÊselect definition from sys.sql_modules as mod, sys.views as views, sys.schemas as sch where mod.object_id=views.object_id and views.schema_id=sch.schema_id and views.name=:viewname and sch.name=:schnameÚviewnamer¼)rcr r}rÀrÁr¡rÂrV) rãrMrÉrBrCrrärÅÚview_defs ræÚget_view_definitionzMSDialect.get_view_definition6 s˜€ð × Ò Ý ŒHð=ñ ô ÷ŠjÝ” ˜j¨(µGÔ4IÑ4KÔ4KÑLÔLÝ” ˜i¨µÔ0EÑ0GÔ0GÑHÔHñôñ  ô  ˆð ð Ø—y’y‘{”{ˆH؈Oð ð rçc ó| —tj}tj}|rwtj|jj|k|jj|k¦«} |›d|›�} |jjdz|jjz} |jjtj| ¦«k} n>|jj|k} |} |jjtj|jj¦«k} tj| |jj |jj k¦«} |  || d¬¦«} |j r |jj}n,tj|jjt!d¦«¦«}tj|||jjg| | |jjg¬¦«}| |¦«}g} | ¦«}|€�n¹||jj }||jj}||jjdk}||jj}||jj}||jj}||jj}||jj}||}||jj}|j |d¦«}i}|t>t@tBtDtFtHtJtLtNj(f vr|dkrd}||d<|r||d <|€(tSj*d |›d |›d �¦«tNj+}nFtY|tNj-¦«r$||d <tY|tNj.¦«s||d<|d!i|¤Ž}||||ddœ}|� |�||dœ|d<| /|¦«�ŒÑi} |D] }!|!| |!d<Œ| tj0d¦«||dœ¦«}"d}# |" ¦«}|€nF|d|d}%}$|% 1d¦«r |$| vr|$}#d| |$d<dddœ| |$d<nŒ]|" 2¦«|#�›|j3thkr‹|›d|›�} | d| ›d| ›d�¦«}"|" 5¦«}|�R|d �J| |#d 6to|d ¦«to|d¦«dœ¦«|S)"Nr?T)ÚonclauseÚisouteri )Úfrom_objrnÚYESr[rZr“zDid not recognize type 'z ' of column 'rCr ÚscaleF)r‹rørör rú)r+r,rôr‹zFEXEC sp_columns @table_name = :table_name, @table_owner = :table_owner)r¢Ú table_ownerrérvrúr)Úmssql_identity_startÚmssql_identity_incrementrþzselect ident_seed('z'), ident_incr('z')rrß)8r¡r°Úcomputed_columnsr r£r˜r¢r¤Ú object_idrÚ column_namer‹r�r›Ú definitionÚcastrr¸Ú is_persistedÚordinal_positionrcrÚ data_typeÚ is_nullableÚcharacter_maximum_lengthÚnumeric_precisionÚ numeric_scaleÚcolumn_defaultÚcollation_nameÚ ischema_namesr’ÚMSStringÚMSCharÚ MSNVarcharÚMSNCharÚMSTextÚMSNTextÚMSBinaryÚ MSVarBinaryrÃÚ LargeBinaryr rƒÚNULLTYPErèÚNumericÚFloatr_r}Úendswithr<rÌr}r¥rÎr )&rãrMrSrBrCrrär°Ú computed_colsrÚtable_fullnameÚ full_nameÚjoin_onr�Úcomputed_definitionrWr˜Úcolsrr‹r›röÚcharlenÚ numericprecÚ numericscaler r“rÙrÛrr$ÚcdictÚcolmaprrOÚicÚcol_nameÚ type_names& ræÚ get_columnszMSDialect.get_columnsN sT€õ”/ˆÝÔ0ˆ Ø ð Ýœ(Ø” Ô$¨ Ò1Ø” Ô&¨%Ò/ñôˆKð).¨¨¨y¨yÐ9ˆNØœ Ô.°Ñ4°w´yÔ7KÑKˆIØ#”oÔ/µ4´>À)Ñ3LÔ3LÒLˆGˆGà!œ)Ô.°)Ò;ˆKØ&ˆNØ#”oÔ/µ4´>Ø” Ô$ñ4ô4òˆGõ”(Ø �W”YÔ*¨m¬oÔ.BÒBñ ô ˆð�|Š|˜M°GÀTˆ|ÑJÔJˆà Ô &ð Ø"/¤/Ô"<Ð Ð õ#&¤(Ø”Ô*­H°T©N¬Nñ#ô#Ð õ ŒJØ Ð)¨=¬?Ô+GÐ HØ ØØ”iÔ0Ð1ð  ñ ô ˆð × Ò ˜qÑ !Ô !ˆØˆð? Ø—*’*‘,”,ˆC؈{ÙØ�w”yÔ,Ô-ˆDؘœ Ô+Ô,ˆEؘ7œ9Ô0Ô1°UÒ:ˆHؘ'œ)Ô<Ô=ˆGؘgœiÔ9Ô:ˆKؘwœyÔ6Ô7ˆLؘ'œ)Ô2Ô3ˆGؘGœIÔ4Ô5ˆIØÐ0Ô1ˆJؘ}œÔ;Ô<ˆLàÔ(×,Ò,¨U°DÑ9Ô9ˆGàˆFØÝÝÝÝÝÝÝÝÝÔ$ð ð ð ð˜b’=�=Ø"�GØ#*��xÑ Øð4Ø*3�F˜;Ñ'àˆÝ” � à�u�u˜d˜d˜dð$ñôðõ#Ô+��å˜g¥xÔ'7Ñ8Ô8ð7Ø*5�F˜;Ñ'å% g­x¬~Ñ>Ô>ð7Ø*6˜˜w™à!˜'Ð+Ð+ FÐ+Ð+�àØØ$Ø"Ø!&ð ðˆEðÐ%¨,Ð*Bà)Ø!-ð%ð%��jÑ!ð �KŠK˜Ñ Ô Ð ñ? ðBˆØð &ð &ˆCØ"%ˆF�3�v”;Ñ Ð à×#Ò#Ý ŒHð.ñ ô ð%°UÐ ;Ð ;ñ  ô ˆðˆð Ø—/’/Ñ#Ô#ˆC؈{ØØ$'¨¤F¨C°¬F�yˆXØ×!Ò! *Ñ-Ô-ð °(¸fÐ2DÐ2DØ�Ø48��xÔ  Ñ1à,-Ø01ð7ð7��xÔ Ð!2Ñ3ðð ð � Š ‰Œˆà ˆ>˜dÔ6½/ÒIÐIØ(-¨¨¨y¨yÐ9ˆNØ×'Ò'Ð'à!�>�> > > >ð3ñôˆFð —,’,‘.”.ˆC؈ 3 q¤6Ð#5Ø�r” Ð,Ô-×4Ò4å03°C¸´F± ´ Ý47¸¸A¼±K´Kððñôðð ˆ rçc ó¶—g}tj}tj d¦«} t j| jj|jj| jj gt j |jj | jj k|jj | jj k| jj |k| jj |k¦«¦«  |jj | jj¦«} | | ¦«} d} | D]O} d| |jjjvr4| | d¦«| €| | jj j} ŒP|| dœS)NÚCÚPRIMARYr)Úconstrained_columnsr‹)r¡Ú constraintsÚkey_constraintsrxr r¸r˜rØÚconstraint_typeÚconstraint_namer£r¤r¢rnrÜrcr‹r_)rãrMrSrBrCrräÚpkeysÚTCrrWr˜rrs ræÚget_pk_constraintzMSDialect.get_pk_constraintç s<€ð ˆÝ Ô ˆÝ Ô #× )Ò )¨#Ñ .Ô .ˆõ ŒJØ ŒSŒ_˜bœdÔ2°A´CÔ4GÐ HÝ ŒHØ”Ô$¨¬Ô(;Ò;Ø”Ô! Q¤SÔ%5Ò5Ø”” )Ò+Ø”Ô  EÒ)ñ  ô ñ ô ÷ Š(�2”4Ô'¨¬Ô)=Ñ >Ô >ð ð × Ò ˜qÑ !Ô !ˆØˆØð Dð DˆCؘC ¤Ô 4Ô 9Ô:Ð:Ð:Ø— ’ ˜S œVÑ$Ô$Ð$Ø"Ð*Ø&)¨!¬#Ô*=Ô*BÔ&C�OøØ',°oÐFÐFÐFrçc ó¬—tj}tj d¦«}tj d¦«} t j|jj| jj| jj | jj|jj |jj |jj |jj gt j|jj |k|jj|k|jj|jjk|jj |jj k| jj |jjk| jj|jjk|jj| jjk¦«|jj | jjg¬¦«} g} d„} t'j| ¦«} | | ¦« ¦«D]x} | \}}}}}}}}| |}||d<|ds||d<|€||kr|r|dz|z}||d<|d |d }}| |¦«| |¦«Œyt1|  ¦«¦«S) NrÚRrmcó—dgddgdœS)N)r‹rÚreferred_schemaÚreferred_tableÚreferred_columnsrßrßrçræÚfkey_recz,MSDialect.get_foreign_keys..fkey_rec' s €àØ')Ø#'Ø"&Ø$&ð ðð rçr‹rr?rrr)r¡Úref_constraintsrrxr r¸r˜rØr¤r¢rÚ match_optionÚ update_ruleÚ delete_ruler£Úconstraint_schemaÚunique_constraint_nameÚunique_constraint_schemarÜr Ú defaultdictrcrr_r•rÒ)rãrMrSrBrCrräÚRRrr rWÚfkeysrrªÚscolÚrschemaÚrtblÚrcolÚrfknmÚfkmatchÚfkupruleÚ fkdelruleÚrecÚ local_colsÚ remote_colss ræÚget_foreign_keyszMSDialect.get_foreign_keys sK€õ Ô $ˆÝ Ô #× )Ò )¨#Ñ .Ô .ˆÝ Ô #× )Ò )¨#Ñ .Ô .ˆõ ŒJà””Ø”Ô Ø””Ø””Ø”Ô$Ø”Ô!Ø”Ô Ø”Ô ð õ ŒHØ”” )Ò+Ø”Ô  EÒ)Ø”Ô&¨!¬#Ô*:Ò:Ø”Ô# r¤tÔ';Ò;Ø”Ô# r¤tÔ'BÒBØ”Ô%¨¬Ô)FÒFØ”Ô$¨¬Ô(<Ò<ñ ô ð”dÔ*¨A¬CÔ,@ÐAð) ñ ô ˆð0ˆð ð ð õÔ  Ñ*Ô*ˆà×#Ò# AÑ&Ô&×/Ò/Ñ1Ô1ð %ð %ˆAØMNÑ JˆD�'˜4  u¨g°xÀà˜”,ˆC؈C�‰KØÐ'Ô(ð 5Ø(,�Ð$Ñ%ØÐ%¨°'Ò)9Ð)9Øð9Ø"(¨3¡,°Ñ"8˜Ø-4�CÐ)Ñ*ðÐ)Ô*ØÐ&Ô'ð$ˆJð × Ò ˜dÑ #Ô #Ð #Ø × Ò ˜tÑ $Ô $Ð $Ð $å�E—L’L‘N”NÑ#Ô#Ð#rç)NTrjNNF)Lrérêrër‹Úsupports_default_valuesÚsupports_empty_insertrëÚexecution_ctx_clsrÚmax_identifier_lengthrmrÃÚDateTimer3ÚDateróÚTimer"rÄrJÚ UnicodeTextrLÚcolspecsr ÚDefaultDialectÚengine_config_typesrËr ÚasboolräÚsupports_native_booleanÚ#non_native_boolean_check_constraintÚsupports_unicode_bindsÚpostfetch_lastrowidr›rÌrÚstatement_compilerrìÚ ddl_compilerr‘rõr0r˜røÚPrimaryKeyConstraintÚUniqueConstraintÚIndexÚColumnÚconstruct_argumentsrârqrsrºrxr{rˆrŠr�r‹rŒrŸrTr¦r Úcacher­rPr´r¹rÇrËrr r(rírîs@rærhrh s�ø€€€€€Ø €DØ"ÐØ!ÐØ*ÐØÐØÐØ€Kð Ô˜;ØŒ �wØŒ �tØÔ˜*ØÔ˜nð €Hð"Ô0ÔD×JÒJØ " D¤KÐ 0Ð1ñôÐð"€Mà#ÐØ*/Ð'Ø!ÐØÐØ"ÐàÐà&ÐØ €LØ"€MØ#€Hð Ô '¨+°tÐ)<Ð=Ø Ô # k°4Ð%8Ð9Ø Œ¨¸ÈÐMÐMÐNØ Ô ¨aÀqÐIÐIÐJð ÐðØØØØ"Ø$ð/ð/ð/ð/ð/ð/ð*>ð>ð>ð>ð>ð  ð ð ð˜ð ð ð ñôÐð  ð  ð  ð.ð.ð.ð`6ð6ð6ð6ð6ð ðððððð&/ð/ð/ð (ð (ð (ðð %ð %ñ„^ð %ðÔððñÔððÔØð ð ñÔñÔð ðÔØð ð ñÔñÔð ðÔØð3&ð3&ñ„^ñÔð3&ðjÔØððñ„^ñÔðð,ÔØðUðUñ„^ñÔðUðnÔØðGðGñ„^ñÔðGð4ÔØðA$ðA$ñ„^ñÔðA$ðA$ðA$ðA$ðA$rçrh)�rYrUrùr>rrNrr¡rrrrør r rÃr r r rrrrrirrrrrrrrrrrrrrr!Úutil.langhelpersr"ÚMS_2016_VERSIONÚMS_2014_VERSIONr™rÍr}ÚMS_2000_VERSIONrºrFrÜÚIntegerrðr.rór"Ú_MSTimeÚobjectr/r-r3r7r9Ú TypeEnginer<r@rÄrJr0rLÚ_BinaryrNr\r_rarírcÚTextrfrhrjrlrnrpÚelementsÚCastrrrsÚ MSDateTimeÚMSDateÚMSRealÚ MSTinyIntegerÚMSTimeÚMSSmallDateTimeÚ MSDateTime2ÚMSDateTimeOffsetrérêrårçrærèrërìÚMSImageÚMSBitÚMSMoneyÚ MSSmallMoneyÚMSUniqueIdentifierÚ MSVarianträÚGenericTypeCompilerr‘ÚDefaultExecutionContextrërUrràÚ DDLCompilerrìÚIdentifierPreparerr0rPrTrLrKÚLRUCacher]r@r2rhrßrçræúr`s; ððe ðe ðN€ € € Ø€€€Ø€€€Ø € € € à+Ð+Ð+Ð+Ð+Ð+ØÐÐÐÐÐØÐÐÐÐÐØ#Ð#Ð#Ð#Ð#Ð#ØÐÐÐÐÐØ!Ð!Ð!Ð!Ð!Ð!ØÐÐÐÐÐØÐÐÐÐÐØ Ð Ð Ð Ð Ð ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ#Ð#Ð#Ð#Ð#Ð#ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ"Ð"Ð"Ð"Ð"Ð"Ø.Ð.Ð.Ð.Ð.Ð.ð€Ø€Ø€Ø€Ø€Ø€à�ðuðuðuñwôw€ðt)ð)ð)ð)ð)ˆ8Œ=ñ)ô)ð)ðððððˆhÔñôððððððˆhŒmñôðð:'ð'ð'ð'ð'ˆ8Œ=ñ'ô'ð'ðT €ððððð�Fñôðð ð ð ð ð �- Ô!2ñ ô ð ð%ð%ð%ð%ð%�M 8Ô#4ñ%ô%ð%ð#ð#ð#ð#ð#� ˜xÔ0ñ#ô#ð#ð#ð#ð#ð#ð#�XÔ(ñ#ô#ð#ð ð ð ð ð �fñ ô ð ð ð ð ð ð � (Ô"2ñ ô ð ð ð ð ð ð �_ hÔ&:ñ ô ð ð,ð,ð,ð,ð,�Ô ñ,ô,ð,ð^"ð"ð"ð"ð"�ñ"ô"ð"ð0ððððˆHÔ ñôðð!ð!ð!ð!ð!�Ô" HÔ$8ñ!ô!ð!ð(ððððˆHÔ ñôðð ð ð ð ð ˆ(Œ-ñ ô ð ðððððˆ(Ô ñôððððððˆHÔ ñôðð"ð"ð"ð"ð"�Ô$ñ"ô"ð"ð(ð(ð(ð(ð(�xÔ*ñ(ô(ð(ð#ð#ð#ð#ð#�(Ô%ñ#ô#ð#ð2ð2ð2ð2ð2ˆcŒlÔñ2ô2ð2ð> ˆ>˜'Ð#=Ñ >Ô >€ð€ Ø €Ø €Ø€ Ø €Ø€Ø€ Ø!ÐØ €Ø €Ø €Ø € Ø €Ø €Ø €Ø€ Ø €Ø €Ø €Ø€ Ø%ÐØ € ðØ ˆ7ðà ˆfðð�ððˆwð ð ˆwð ð �ð ð ˆDðð ˆUðð ˆDðð ˆUððˆwððˆwðð ˆUðð�ðð�ðð �nð!ð" ˆDð#ð$ Ø"ØØØ Ø Ø Ø ØØ ØØ(Øð=ðð€ ðDGðGðGðGðG�XÔ1ñGôGðGðT,ð,ð,ð,ð,˜Ô8ñ,ô,ð,ðDV ðV ðV ðV ðV �HÔ(ñV ôV ðV ðr ,ð,ð,ð,ð,˜-ñ,ô,ð,ð^tðtðtðtðt�HÔ(ñtôtðtðn(ð(ð(ð(ð(˜8Ô6ñ(ô(ð(ðV$ð$ð$ð$$ð$ð$ð&ððð"ððð!�4”=‘?”?Ðð4ð4ð4ðnE $ðE $ðE $ðE $ðE $�Ô&ñE $ôE $ðE $ðE $ðE $rç