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
3a7f9b0e
Commit
3a7f9b0e
authored
Aug 08, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added exception throwing for unknown data types,
deprecated short data type names 's', 'i' etc.
parent
dc92af14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
DataDict.php
Doctrine/DataDict.php
+4
-12
PathModel.php
Doctrine/Tree/PathModel.php
+2
-2
No files found.
Doctrine/DataDict.php
View file @
3a7f9b0e
...
...
@@ -5,7 +5,7 @@ class Doctrine_DataDict {
public
function
__construct
(
PDO
$dbh
)
{
$file
=
Doctrine
::
getPath
()
.
DIRECTORY_SEPARATOR
.
"Doctrine"
.
DIRECTORY_SEPARATOR
.
"adodb-hack"
.
DIRECTORY_SEPARATOR
.
"adodb.inc.php"
;
if
(
!
file_exists
(
$file
))
throw
new
Doctrine_Exception
(
"Couldn't include datadict. File
$file
does not exist"
);
...
...
@@ -59,11 +59,8 @@ class Doctrine_DataDict {
public
function
getADOType
(
$type
,
$length
)
{
switch
(
$type
)
:
case
"array"
:
case
"a"
:
case
"object"
:
case
"o"
:
case
"string"
:
case
"s"
:
if
(
$length
<=
255
)
return
"C(
$length
)"
;
elseif
(
$length
<=
4000
)
...
...
@@ -79,28 +76,21 @@ class Doctrine_DataDict {
case
"clob"
:
return
"XL"
;
break
;
case
"d"
:
case
"date"
:
return
"D"
;
break
;
case
"float"
:
case
"f"
:
case
"double"
:
return
"F"
;
break
;
case
"timestamp"
:
case
"t"
:
return
"T"
;
break
;
case
"boolean"
:
case
"bool"
:
return
"L"
;
break
;
case
"enum"
:
case
"e"
:
case
"enum"
:
case
"integer"
:
case
"int"
:
case
"i"
:
if
(
empty
(
$length
))
return
"I8"
;
elseif
(
$length
<
4
)
...
...
@@ -115,6 +105,8 @@ class Doctrine_DataDict {
throw
new
Doctrine_Exception
(
"Too long integer (max length is 20)."
);
break
;
default
:
throw
new
Doctrine_Exception
(
"Unknown column type
$type
"
);
endswitch
;
}
}
...
...
Doctrine/Tree/PathModel.php
View file @
3a7f9b0e
...
...
@@ -21,7 +21,7 @@
/**
* Doctrine_Tree_PathModel
*
* the purpose of Doctrine_Tree_
NestedSet
is to provide PathModel tree access
* the purpose of Doctrine_Tree_
PathModel
is to provide PathModel tree access
* strategy for all records extending it
*
* @package Doctrine ORM
...
...
@@ -34,7 +34,7 @@ class Doctrine_Tree_PathModel extends Doctrine_Record {
public
function
getPath
()
{
}
public
function
getDepth
()
{
}
public
function
getDepth
()
{
}
public
function
removeNode
()
{
}
...
...
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