Skip to content

Commit 2dea8f2

Browse files
committed
fix: Fix to Table Name Inclusion on Create Table Query
1 parent 01d523b commit 2dea8f2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

webfiori/database/mssql/MSSQLColumn.php

+1
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ private function defaultPartString() {
632632
}
633633
}
634634
private function firstColPartString() {
635+
$this->setWithTablePrefix(false);
635636
$retVal = MSSQLQuery::squareBr($this->getName()).' ';
636637
$colDataTypeSq = MSSQLQuery::squareBr($this->getDatatype());
637638
$colDataType = $this->getDatatype();

webfiori/database/mssql/MSSQLTable.php

+2
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,13 @@ private function createFKString() {
299299
$sourceCols = [];
300300

301301
foreach ($fkObj->getSourceCols() as $colObj) {
302+
$colObj->setWithTablePrefix(false);
302303
$sourceCols[] = ''.$colObj->getName().'';
303304
}
304305
$targetCols = [];
305306

306307
foreach ($fkObj->getOwnerCols() as $colObj) {
308+
$colObj->setWithTablePrefix(false);
307309
$targetCols[] = ''.$colObj->getName().'';
308310
}
309311
$fkConstraint .= " constraint ".$fkObj->getKeyName().' '

0 commit comments

Comments
 (0)