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
fd6d758d
Commit
fd6d758d
authored
Sep 04, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documented Oracle OCI Question Mark and LOB decisions
parent
7842e361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
known-vendor-issues.txt
reference/en/known-vendor-issues.txt
+33
-0
No files found.
reference/en/known-vendor-issues.txt
View file @
fd6d758d
...
...
@@ -62,9 +62,42 @@ very nasty. Derick Rethans explains it very well [in a blog post of his](http://
++ Oracle
+++ DateTimeTz
Oracle does not save the actual Timezone Name but UTC-Offsets. The difference is subtle but can be potentially
very nasty. Derick Rethans explains it very well [in a blog post of his](http://derickrethans.nl/storing-date-time-in-database.html).
+++ OCI8: SQL Queries with Question Marks
We had to implement a question mark to named parameter translation inside the OCI8 DBAL Driver. This means that
you cannot execute queries that contain question marks in the SQL string. For example:
[sql]
SELECT * FROM users WHERE name = 'bar?'
Will be rewritten into:
[sql]
SELECT * FROM users WHERE name = 'bar:oci1'
For this reason you should always use prepared statements with Oracle OCI8, never use string literals inside the queries.
A query for the user 'bar?' should look like:
[php]
$sql = 'SELECT * FROM users WHERE name = ?'
$stmt = $conn->prepare($sql);
$stmt->bindValue(1, 'bar?');
$stmt->execute();
We will probably fix this issue in the future by implementing a little parser inside the OCI8 Driver that can detect
the difference between question mark needles and literal questions marks.
+++ OCI-LOB instances
Doctrine 2 always requests CLOB columns as strings, so that you as a developer never get access to the `OCI-LOB` instance.
Since we are using prepared statements for all write operations inside the ORM,
using strings instead of the `OCI-LOB` does not cause any problems.
++ Microsoft SQL Server
Nothing yet.
\ No newline at end of file
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