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
41792429
Commit
41792429
authored
Nov 26, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated datadict drivers
parent
eb6dde75
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
24 deletions
+27
-24
Firebird.php
lib/Doctrine/DataDict/Firebird.php
+1
-1
Mssql.php
lib/Doctrine/DataDict/Mssql.php
+1
-1
Mysql.php
lib/Doctrine/DataDict/Mysql.php
+5
-4
Oracle.php
lib/Doctrine/DataDict/Oracle.php
+9
-9
Pgsql.php
lib/Doctrine/DataDict/Pgsql.php
+1
-1
Sqlite.php
lib/Doctrine/DataDict/Sqlite.php
+10
-8
No files found.
lib/Doctrine/DataDict/Firebird.php
View file @
41792429
...
...
@@ -30,7 +30,7 @@ Doctrine::autoload('Doctrine_DataDict');
* @link www.phpdoctrine.com
* @since 1.0
*/
class
Doctrine_DataDict_Firebird
extends
Doctrine_
DataDict
{
class
Doctrine_DataDict_Firebird
extends
Doctrine_
Connection_Module
{
/**
* Obtain DBMS specific SQL code portion needed to declare an text type
* field to be used in statements like CREATE TABLE.
...
...
lib/Doctrine/DataDict/Mssql.php
View file @
41792429
...
...
@@ -30,7 +30,7 @@
* @link www.phpdoctrine.com
* @since 1.0
*/
class
Doctrine_DataDict_Mssql
extends
Doctrine_
DataDict
{
class
Doctrine_DataDict_Mssql
extends
Doctrine_
Connection_Module
{
/**
* Obtain DBMS specific SQL code portion needed to declare an text type
* field to be used in statements like CREATE TABLE.
...
...
lib/Doctrine/DataDict/Mysql.php
View file @
41792429
...
...
@@ -53,7 +53,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
* @return string DBMS specific SQL code portion that should be used to
* declare the specified field.
*/
public
function
get
Typ
eDeclaration
(
$field
)
{
public
function
get
Nativ
eDeclaration
(
$field
)
{
switch
(
$field
[
'type'
])
{
case
'array'
:
case
'object'
:
...
...
@@ -127,10 +127,9 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
* Maps a native array description of a field to a MDB2 datatype and length
*
* @param array $field native field description
* @author Lukas Smith (PEAR MDB2 library)
* @return array containing the various possible types, length, sign, fixed
*/
public
function
mapNativeDatatype
(
$field
)
{
public
function
getDoctrineDeclaration
(
$field
)
{
$db_type
=
strtolower
(
$field
[
'type'
]);
$db_type
=
strtok
(
$db_type
,
'(), '
);
if
(
$db_type
==
'national'
)
{
...
...
@@ -328,8 +327,10 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict {
$notnull
=
empty
(
$field
[
'notnull'
])
?
''
:
' NOT NULL'
;
$unsigned
=
empty
(
$field
[
'unsigned'
])
?
''
:
' UNSIGNED'
;
$name
=
$this
->
conn
->
quoteIdentifier
(
$name
,
true
);
return
$name
.
' '
.
$this
->
getTypeDeclaration
(
$field
)
.
$unsigned
.
$default
.
$notnull
.
$autoinc
;
return
$name
.
' '
.
$this
->
getNativeDeclaration
(
$field
)
.
$unsigned
.
$default
.
$notnull
.
$autoinc
;
}
/**
* lists all databases
...
...
lib/Doctrine/DataDict/Oracle.php
View file @
41792429
lib/Doctrine/DataDict/Pgsql.php
View file @
41792429
...
...
@@ -29,7 +29,7 @@
* @link www.phpdoctrine.com
* @since 1.0
*/
class
Doctrine_DataDict_Pgsql
extends
Doctrine_
DataDict
{
class
Doctrine_DataDict_Pgsql
extends
Doctrine_
Connection_Module
{
/**
* @param array $reservedKeyWords an array of reserved keywords by pgsql
*/
...
...
lib/Doctrine/DataDict/Sqlite.php
View file @
41792429
...
...
@@ -29,7 +29,7 @@ Doctrine::autoload('Doctrine_DataDict');
* @link www.phpdoctrine.com
* @since 1.0
*/
class
Doctrine_DataDict_Sqlite
extends
Doctrine_
DataDict
{
class
Doctrine_DataDict_Sqlite
extends
Doctrine_
Connection_Module
{
/**
* Obtain DBMS specific SQL code portion needed to declare an text type
* field to be used in statements like CREATE TABLE.
...
...
@@ -202,10 +202,12 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict {
case
'double'
:
case
'real'
:
$type
[]
=
'float'
;
$length
=
null
;
break
;
case
'decimal'
:
case
'numeric'
:
$type
[]
=
'decimal'
;
$length
=
null
;
break
;
case
'tinyblob'
:
case
'mediumblob'
:
...
...
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