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
1ddb9159
Commit
1ddb9159
authored
May 30, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a folder remotely
parent
0042b669
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1122 additions
and
0 deletions
+1122
-0
adodb-datadict.inc.php
Doctrine/adodb-hack/adodb-datadict.inc.php
+1072
-0
adodb.inc.php
Doctrine/adodb-hack/adodb.inc.php
+50
-0
No files found.
Doctrine/adodb-hack/adodb-datadict.inc.php
0 → 100644
View file @
1ddb9159
This diff is collapsed.
Click to expand it.
Doctrine/adodb-hack/adodb.inc.php
0 → 100644
View file @
1ddb9159
<?php
/**
* ADOdb Lite is a PHP class to encapsulate multiple database APIs and is compatible with
* a subset of the ADODB Command Syntax.
* Currently supports Frontbase, MaxDB, miniSQL, MSSQL, MSSQL Pro, MySQLi, MySQLt, MySQL, PostgresSQL,
* PostgresSQL64, PostgresSQL7, PostgresSQL8, SqLite, SqLite Pro, Sybase and Sybase ASE.
*
*/
if
(
!
defined
(
'_ADODB_LAYER'
))
define
(
'_ADODB_LAYER'
,
1
);
if
(
!
defined
(
'ADODB_DIR'
))
define
(
'ADODB_DIR'
,
dirname
(
__FILE__
));
$ADODB_vers
=
'V1.15 ADOdb Lite 25 March 2006 (c) 2005, 2006 Mark Dickenson. All rights reserved. Released LGPL.'
;
define
(
'ADODB_FETCH_DEFAULT'
,
0
);
define
(
'ADODB_FETCH_NUM'
,
1
);
define
(
'ADODB_FETCH_ASSOC'
,
2
);
define
(
'ADODB_FETCH_BOTH'
,
3
);
GLOBAL
$ADODB_FETCH_MODE
;
$ADODB_FETCH_MODE
=
ADODB_FETCH_DEFAULT
;
// DEFAULT, NUM, ASSOC or BOTH. Default follows native driver default...
function
NewDataDictionary
(
PDO
$conn
)
{
$dbtype
=
$conn
->
getAttribute
(
PDO
::
ATTR_DRIVER_NAME
);
include_once
ADODB_DIR
.
'/adodb-datadict.inc.php'
;
include_once
ADODB_DIR
.
'/drivers/datadict-'
.
$dbtype
.
'.inc.php'
;
$class
=
"ADODB2_
$dbtype
"
;
$dict
=
new
$class
();
$dict
->
connection
=
$conn
;
$dict
->
upperName
=
strtoupper
(
$dbtype
);
//$dict->quote = $conn->nameQuote;
//$dict->debug_echo = $conn->debug_echo;
return
$dict
;
}
class
ADOFieldObject
{
var
$name
=
''
;
var
$max_length
=
0
;
var
$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