Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
fcfff27a
Commit
fcfff27a
authored
Jan 30, 2008
by
lsmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixes #519 and #761 (patch provided by RQuadling)
parent
a2d69c5d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Mssql.php
lib/Doctrine/DataDict/Mssql.php
+3
-1
Mssql.php
lib/Doctrine/Import/Mssql.php
+4
-2
No files found.
lib/Doctrine/DataDict/Mssql.php
View file @
fcfff27a
...
...
@@ -123,7 +123,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
*/
public
function
getPortableDeclaration
(
$field
)
{
$db_type
=
preg_replace
(
'/
\d
/'
,
''
,
strtolower
(
$field
[
'type'
])
);
$db_type
=
preg_replace
(
'/
[\d\(\)]
/'
,
''
,
strtolower
(
$field
[
'type'
])
);
$length
=
(
isset
(
$field
[
'length'
])
&&
$field
[
'length'
]
>
0
)
?
$field
[
'length'
]
:
null
;
$type
=
array
();
...
...
@@ -137,6 +137,8 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
case
'bit'
:
$type
[
0
]
=
'boolean'
;
break
;
case
'tinyint'
:
case
'smallint'
:
case
'int'
:
$type
[
0
]
=
'integer'
;
if
(
$length
==
1
)
{
...
...
lib/Doctrine/Import/Mssql.php
View file @
fcfff27a
...
...
@@ -73,6 +73,8 @@ class Doctrine_Import_Mssql extends Doctrine_Import
$type
.=
'('
.
$val
[
'length'
]
.
')'
;
}
$val
[
'type'
]
=
$type
;
$val
[
'identity'
]
=
$identity
;
$decl
=
$this
->
conn
->
dataDict
->
getPortableDeclaration
(
$val
);
$description
=
array
(
...
...
@@ -112,7 +114,7 @@ class Doctrine_Import_Mssql extends Doctrine_Import
*/
public
function
listTables
(
$database
=
null
)
{
$sql
=
"SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name"
;
$sql
=
"SELECT name FROM sysobjects WHERE type = 'U'
AND name <> 'dtproperties'
ORDER BY name"
;
return
$this
->
conn
->
fetchColumn
(
$sql
);
}
...
...
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