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
69f1bd41
Commit
69f1bd41
authored
Aug 10, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed notice error when running tests
parent
a903c927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Sqlite.php
lib/Doctrine/DataDict/Sqlite.php
+4
-2
No files found.
lib/Doctrine/DataDict/Sqlite.php
View file @
69f1bd41
...
...
@@ -272,7 +272,9 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict
$default
=
$autoinc
=
''
;
$type
=
$this
->
getNativeDeclaration
(
$field
);
if
(
isset
(
$field
[
'autoincrement'
])
&&
$field
[
'autoincrement'
])
{
$autoincrement
=
isset
(
$field
[
'autoincrement'
])
&&
$field
[
'autoincrement'
];
if
(
$autoincrement
){
$autoinc
=
' PRIMARY KEY AUTOINCREMENT'
;
$type
=
'INTEGER'
;
}
elseif
(
array_key_exists
(
'default'
,
$field
))
{
...
...
@@ -289,7 +291,7 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict
$notnull
=
(
isset
(
$field
[
'notnull'
])
&&
$field
[
'notnull'
])
?
' NOT NULL'
:
''
;
// sqlite does not support unsigned attribute for autoinremented fields
$unsigned
=
(
isset
(
$field
[
'unsigned'
])
&&
$field
[
'unsigned'
]
&&
!
$field
[
'autoincrement'
]
)
?
' UNSIGNED'
:
''
;
$unsigned
=
(
isset
(
$field
[
'unsigned'
])
&&
$field
[
'unsigned'
]
&&
!
$autoincrement
)
?
' UNSIGNED'
:
''
;
$name
=
$this
->
conn
->
quoteIdentifier
(
$name
,
true
);
return
$name
.
' '
.
$type
.
$unsigned
.
$default
.
$notnull
.
$autoinc
;
...
...
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