File tree Expand file tree Collapse file tree
src/mako/database/connections Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 */
4747class Connection
4848{
49+ /**
50+ * Does the connection support transactional DDL?
51+ */
52+ protected const bool SUPPORTS_TRANSACTIONAL_DDL = false ;
53+
4954 /**
5055 * Connection DSN.
5156 */
@@ -101,11 +106,6 @@ class Connection
101106 */
102107 protected array $ log = [];
103108
104- /**
105- * Does the connection support transactional DDL?
106- */
107- protected bool $ supportsTransactionalDDL = false ;
108-
109109 /**
110110 * Constructor.
111111 */
@@ -167,7 +167,7 @@ public function close(): void
167167 */
168168 public function supportsTransactionalDDL (): bool
169169 {
170- return $ this -> supportsTransactionalDDL ;
170+ return static :: SUPPORTS_TRANSACTIONAL_DDL ;
171171 }
172172
173173 /**
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ class Postgres extends Connection
1717 /**
1818 * {@inheritDoc}
1919 */
20- #[Override]
21- protected bool $ supportsTransactionalDDL = true ;
20+ // #[Override]
21+ protected const bool SUPPORTS_TRANSACTIONAL_DDL = true ;
2222}
Original file line number Diff line number Diff line change 1414 */
1515class SQLServer extends Connection
1616{
17+ /**
18+ * {@inheritDoc}
19+ */
20+ //#[Override]
21+ protected const bool SUPPORTS_TRANSACTIONAL_DDL = true ;
22+
1723 /**
1824 * {@inheritDoc}
1925 */
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ class SQLite extends Connection
1717 /**
1818 * {@inheritDoc}
1919 */
20- #[Override]
21- protected bool $ supportsTransactionalDDL = true ;
20+ // #[Override]
21+ protected const bool SUPPORTS_TRANSACTIONAL_DDL = true ;
2222}
You can’t perform that action at this time.
0 commit comments