Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Doctrine_Adapter_Oracle::__des truct - the necessity)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Miloslav Kmeť  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 19:59
From: Miloslav Kmeť <miloslav.k...@gmail.com>
Date: Thu, 5 Nov 2009 20:59:52 +0100
Local: Thurs 5 Nov 2009 19:59
Subject: Doctrine_Adapter_Oracle::__destruct - the necessity)
Hi,

today I tried to do some database interactions in sfI18N::__destruct() (saving
untraslated strings into the database). I developed this feature on
postgresql, whithout noticing any problem, but after on Oracle through oracle
adapter I found, that Doctrine_Adapter_Oracle was destructed before the and I
wasn't be able to establish new connection to do some queries.

I think, that there is no reason to do manual rollbacks and disconnecting from
the database, because as PHP oracle underground manual says:

"At the end of each script, connections opened with oci_connect() or
oci_new_connect() are automatically closed. Any uncommitted data is rolled
back."

So it will be always done so without the necessity of destructing it in the
adapter and we can safely remove the whole __destruct() function from the
adapter.

Any comments?

~
Miloslav Kmeť


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google