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
9200d127
Commit
9200d127
authored
Nov 22, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small refactorings
parent
ee5a7f8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
Expression.php
lib/Doctrine/Expression.php
+15
-2
Builder.php
lib/Doctrine/Import/Builder.php
+6
-7
No files found.
lib/Doctrine/Expression.php
View file @
9200d127
...
...
@@ -186,9 +186,9 @@ class Doctrine_Expression extends Doctrine_Connection_Module {
* locate
* returns the position of the first occurrence of substring $substr in string $str
*
* @param string $substr literal string
* @param string $substr literal string
to find
* @param string $str literal string
* @return
string
* @return
integer
*/
public
function
locate
(
$substr
,
$str
)
{
return
'LOCATE('
.
$str
.
', '
.
$substr
.
')'
;
...
...
@@ -201,6 +201,19 @@ class Doctrine_Expression extends Doctrine_Connection_Module {
public
function
now
()
{
return
'NOW()'
;
}
/**
* soundex
* Returns a string to call a function to compute the
* soundex encoding of a string
*
* The string "?000" is returned if the argument is NULL.
*
* @param string $value
* @return string SQL soundex function with given parameter
*/
public
function
soundex
(
$value
)
{
throw
new
Doctrine_Expression_Exception
(
'SQL soundex function not supported by this driver.'
);
}
/**
* return string to call a function to get a substring inside an SQL statement
*
...
...
lib/Doctrine/Import/Builder.php
View file @
9200d127
...
...
@@ -143,16 +143,15 @@ class Doctrine_Import_Builder {
/**
*
* @param Doctrine_Schema_Object $schema
* @return
* @access public
* @throws Doctrine_Import_Exception
* @return void
*/
public
function
build
(
Doctrine_Schema_Object
$schema
)
{
foreach
(
$schema
->
getDatabases
()
as
$database
){
foreach
(
$database
->
getTables
()
as
$table
){
$this
->
buildRecord
(
$table
);
}
}
foreach
(
$schema
->
getDatabases
()
as
$database
){
foreach
(
$database
->
getTables
()
as
$table
){
$this
->
buildRecord
(
$table
);
}
}
}
}
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