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
05acd91d
Commit
05acd91d
authored
Feb 14, 2008
by
adrive
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge r3769 (fixed problem with convertBoolean in Pgsql)
parent
fc4f7e6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Pgsql.php
lib/Doctrine/Connection/Pgsql.php
+2
-2
Export.php
lib/Doctrine/Export.php
+1
-1
No files found.
lib/Doctrine/Connection/Pgsql.php
View file @
05acd91d
...
...
@@ -106,12 +106,12 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
{
if
(
is_array
(
$item
))
{
foreach
(
$item
as
$key
=>
$value
)
{
if
(
is_bool
(
$value
))
{
if
(
is_bool
(
$value
)
||
is_numeric
(
$item
)
)
{
$item
[
$key
]
=
(
$value
)
?
'true'
:
'false'
;
}
}
}
else
{
if
(
is_bool
(
$item
))
{
if
(
is_bool
(
$item
)
||
is_numeric
(
$item
)
)
{
$item
=
(
$item
)
?
'true'
:
'false'
;
}
}
...
...
lib/Doctrine/Export.php
View file @
05acd91d
...
...
@@ -748,7 +748,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
}
if
(
$field
[
'type'
]
===
'boolean'
)
{
$field
s
[
'default'
]
=
$this
->
conn
->
convertBooleans
(
$field
[
'default'
]);
$field
[
'default'
]
=
$this
->
conn
->
convertBooleans
(
$field
[
'default'
]);
}
$default
=
' DEFAULT '
.
$this
->
conn
->
quote
(
$field
[
'default'
],
$field
[
'type'
]);
}
...
...
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