Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
2430ebe9
Commit
2430ebe9
authored
May 22, 2013
by
resurtm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSSQL AR tests.
parent
1f9a4685
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
Schema.php
framework/yii/db/mssql/Schema.php
+0
-7
MssqlActiveRecordTest.php
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
+12
-0
No files found.
framework/yii/db/mssql/Schema.php
View file @
2430ebe9
...
@@ -290,13 +290,6 @@ SQL;
...
@@ -290,13 +290,6 @@ SQL;
$table
->
primaryKey
=
$this
->
db
$table
->
primaryKey
=
$this
->
db
->
createCommand
(
$sql
,
array
(
':tableName'
=>
$table
->
name
,
':schemaName'
=>
$table
->
schemaName
))
->
createCommand
(
$sql
,
array
(
':tableName'
=>
$table
->
name
,
':schemaName'
=>
$table
->
schemaName
))
->
queryColumn
();
->
queryColumn
();
if
(
count
(
$table
->
primaryKey
)
==
0
)
{
// table does not have primary key
$table
->
primaryKey
=
null
;
}
elseif
(
count
(
$table
->
primaryKey
)
==
1
)
{
// table has one primary key
$table
->
primaryKey
=
$table
->
primaryKey
[
0
];
}
}
}
/**
/**
...
...
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
0 → 100644
View file @
2430ebe9
<?php
namespace
yiiunit\framework\db\mssql
;
class
MssqlActiveRecordTest
extends
\yiiunit\framework\db\ActiveRecordTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlsrv'
;
parent
::
setUp
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment