summaryrefslogtreecommitdiff
path: root/bin/sql_db.py
AgeCommit message (Collapse)Author
2011-02-07[IMP] openerp python module.Vo Minh Thu
- Some logging code moved from netsvc.py to loglevels.py - Changed imports to use the new openerp module - config and netsvc initialization calls move to openerp-server.py - Moved openerp-server.py outside the old bin directory - Some imports in tools moved inside the methods to break mutual-dependencies bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-01-18[FIX] stop related crons when closing a databaseChristophe Simonis
bzr revid: chs@openerp.com-20110118192637-i0yyyo86pa2hzq1d
2011-01-15[IMP] logging for set null failedFabien Pinckaers
bzr revid: fp@tinyerp.com-20110115170410-s0z661hshxjzj6b7
2010-11-30[MERGE+FIX] fixes for translations,sequence,copy,error messages - some ↵Olivier Dony
patches courtesy of Margarita Manterola and Don Kirkby lp bug: https://launchpad.net/bugs/672130 fixed lp bug: https://launchpad.net/bugs/663775 fixed lp bug: https://launchpad.net/bugs/673194 fixed lp bug: https://launchpad.net/bugs/663977 fixed bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
2010-11-24sql_db: only do frame inspection when debuggingP. Christeas
This affects the "Cursor not closed explicitly..." message. The message is at a "warning" level, but the frame inspection added some expensive overhead to each cursor open. So, avoid that unless we are at debug mode. bzr revid: p_christ@hol.gr-20101124094853-0ljr6nebkyya0eui
2010-11-24add error log message if raise exception on database connectTristan Hill (credativ)
bzr revid: ysa@tinyerp.com-20101124094133-ayl5pppdjqkx534q
2010-11-23sql_db: Better exceptions.P. Christeas
A closed cursor should behave the same as a closed connection, ie. OperationalError. Also instrument a function we don't expect to be called. bzr revid: p_christ@hol.gr-20101123135837-vkn3ph0e4bz9urf0
2010-11-23sql_db: Avoid using inspect.stack(), use failsafe alternative.P. Christeas
Inspecting the full stack just to learn the file:line info for debugging purposes is both expensive and error-prone. Write an alternative function in tools/func.py that will just go N frames back and try to get the info. bzr revid: p_christ@hol.gr-20101123135742-2jp75f3uxyg3a6b6
2010-09-18[IMP] improve debug for --log-level=debug_sqlFabien Pinckaers
bzr revid: fp@tinyerp.com-20100918093052-nxapeqahzt4cpr2m
2010-09-06[FIX] Use the currentThread function instead of current_threadStephane Wirtel
bzr revid: stephane@openerp.com-20100906140645-zxt6los8sl54qzj0
2010-09-03[IMP] sql_db.cursor: optional 'log_exceptions' flag to turn off logging ↵Olivier Dony
exceptions inside the cr.execute() method This is useful when the caller wants to do the logging. bzr revid: odo@openerp.com-20100903122426-fox86td4uqr3l0jx
2010-09-03[IMP] sql_db: promote some debug_sql to info or warningChristophe Simonis
bzr revid: chs@openerp.com-20100903085804-p0yij5nly1d076c7
2010-09-03[IMP] display database name in the loggerChristophe Simonis
bzr revid: chs@openerp.com-20100903074132-nrhd3p2i53hmtt9j
2010-08-04[MERGE+IMP] logging: merged xrg's branch to set selective logger level + ↵P. Christeas, Olivier Dony
added new 'debug_sql' loglevel to avoid having to modify sql_db.py to enable SQL logging bzr revid: odo@openerp.com-20100804134900-dfupojmgcj0rjhd2
2010-05-14[IMP] sql_db.py: improve loggingChristophe Simonis
bzr revid: chs@openerp.com-20100514133341-y093gp9yqfckcm80
2010-05-14[IMP] sql_db.py: backport changes from stable branchChristophe Simonis
bzr revid: chs@openerp.com-20100514131506-yx7qsu2nuylk1v5e
2010-03-30[ADD] utility methods to split large lists of ids for use in IN clausesOlivier Dony
bzr revid: odo@openerp.com-20100330172603-ty878ds2i9oa33zq
2010-03-03[IMP] remove crappy log() function from db_sql, migrate to logging's LoggerStephane Wirtel
bzr revid: stephane@openerp.com-20100303092841-vd278m62602ziyhl
2010-03-02[imp] remove crappy log() function from db_sql, migrate to logging's LoggerXavier Morel
bzr revid: xmo@tinyerp.com-20100302095840-bavk87douskr01af
2010-03-02[imp] remove mostly unused DEBUG2 logging levelXavier Morel
bzr revid: xmo@tinyerp.com-20100302094648-gztszaux31oyfptv
2010-02-16Merged with stableHDA (OpenERP)
bzr revid: hda@tinyerp.com-20100216063114-d2crv3zayarq2vk6
2010-02-04[IMP] sql_db: better loggingChristophe Simonis
bzr revid: chs@tinyerp.com-20100204172800-oy6uavhn13osk9x1
2010-01-20[FIX] remove the lock on database connectionsChristophe Simonis
[ADD] exported method check_connectivity [REF] better logging of the Connection and ConnectionPool objects [REF] use template0 as template when create new database bzr revid: chs@tinyerp.com-20100120163913-5ftbs7e85lwqb1et
2010-01-12MergedHDA (OpenERP)
bzr revid: hda@tinyerp.com-20100112104830-x35l4g08og2gacwo
2009-12-22[FIX] multi company, speed improvementFabien Pinckaers
bzr revid: fp@tinyerp.com-20091222212036-oeekt3f06k5j0ize
2009-12-08[FIX] better locking when accessing to template1 databaseChristophe Simonis
bzr revid: chs@tinyerp.com-20091208172759-wncaqjguglwgf634
2009-12-02[merge] fix-shebang from 5.0 to trunkXavier Morel
bzr revid: hmo@tinyerp.com-20091202091102-r509b0bgogyul6yx bzr revid: xmo@tinyerp.com-20091202101458-6a1mo240grkld6do
2009-12-01[FIX] db_exist method works as expectedChristophe Simonis
bzr revid: chs@tinyerp.com-20091201133214-8c6i1ohk5t5u79dz
2009-11-28[MERGE] backport from stableChristophe Simonis
lp bug: https://launchpad.net/bugs/488234 fixed bzr revid: chs@tinyerp.com-20091128001554-9ka8o40104a81bj7
2009-11-28[IMP] sql_logChristophe Simonis
bzr revid: chs@tinyerp.com-20091127234726-1k4g37h036x0hy7a
2009-11-28[FIX] connection pool when database password is provided (thanks to Syleam Crew)Christophe Simonis
lp bug: https://launchpad.net/bugs/488234 fixed bzr revid: chs@tinyerp.com-20091127231126-lbdmz9i9tm50k8f7
2009-11-25[MERGE] merge with master branchHarry (Open ERP)
bzr revid: hmo@tinyerp.com-20091125070844-1mt6908hm40t03hq
2009-11-24[FIX] replaced <TAB> with four white space.Harry (Open ERP)
bzr revid: hmo@tinyerp.com-20091124144405-9mzd91chohvf0uu7
2009-11-23[IMP] better connection poolChristophe Simonis
bzr revid: chs@tinyerp.com-20091123170734-usmmwc5uzoik73hs
2009-11-23[IMP] better connection pool (global)Christophe Simonis
bzr revid: chs@tinyerp.com-20091123170509-qe5keihqjoa71ppd
2009-11-20[merge] merge from lp:~xrg/openobject-server/optimize-5.0 and removed some ↵xrg
confilts bzr revid: hmo@tinyerp.com-20091120143104-tb6136unkdw7yfy9
2009-10-20Changed encoding to coding ref: PEP: 0263pap(openerp)
bzr revid: hda@tinyerp.com-20091020105223-2o94yr2iv2v10axr
2009-10-14Changed licencingPSO(OpenERP)
bzr revid: hda@tinyerp.com-20091014123215-nuyqs18090whzt5o
2009-08-28Merge branch 'xrg' into optimizeP. Christeas
Conflicts: bin/osv/orm.py bzr revid: p_christ@hol.gr-20090828143403-c48ylvbkzgnimvhr
2009-08-14Introduce 'debug2' loglevel, use it for SQLP. Christeas
Sometimes we want to debug SQL, not always though. bzr revid: p_christ@hol.gr-20090814160111-fhw1j4jmx94t2hjv
2009-07-26Mark some points where SQL calls need optimize.P. Christeas
In particular, calls to ir.translate are done in Python loops. This is slow. bzr revid: p_christ@hol.gr-20090726075504-v6qgdyyg9vyaazfr
2009-05-22Merge commit 'origin/master' into mdv-gpl3-py26P. Christeas
Conflicts: bin/addons/base/res/__init__.py setup.py bzr revid: p_christ@hol.gr-20090521212526-1p9xohdfw2p7v9o6
2009-05-20[FIX] bug 375361: ensure the db transaction is closed when closing the cursorChristophe Simonis
lp bug: https://launchpad.net/bugs/375361 fixed bzr revid: christophe@tinyerp.com-20090520150238-w18k3aitqzpmw5nm
2009-05-06Merge commit 'origin/master' into mdv-gpl3-py26P. Christeas
Conflicts: bin/report/interface.py bin/report/printscreen/ps_list.py bin/report/render/__init__.py bin/report/render/rml.py bin/report/render/rml2pdf/trml2pdf.py bin/sql_db.py bzr revid: p_christ@hol.gr-20090506201813-qb71ec85xr08obb1
2009-05-01[FIX] Corrected arguement passed to cursor's execute method(when params=[]Jay (Open ERP)
bzr revid: jvo@tinyerp.com-20090501120909-4nyzibm3fapkv1rq
2009-04-28[FIX] do not relay on _obj to know if the cursor has been closedChristophe Simonis
lp bug: https://launchpad.net/bugs/330999 fixed bzr revid: christophe@tinyerp.com-20090428141007-td39oa95wk5h5dt7
2009-04-20Rewrite previous patch, sane cursor close checks.P. Christeas
bzr revid: p_christ@hol.gr-20090420183755-epdfdf6pgd6vc88m
2009-04-20Major fix for Python 2.6: fix db cursor speed like 2.5P. Christeas
In python 2.6, the hasattr() will undergo subclass checks. So, it is unwise to call it for the "object". That subclass check would overflow the recursion limit, on each cursor delete operation, which ends up in wasted CPU (and slow OpenObject responsiveness). Now, hopefully, OpenObject will run in 2.6 as fast as it ran in 2.5 . bzr revid: p_christ@hol.gr-20090420172016-1dgiys0cj90efh34
2009-02-08Merge commit 'origin/master' into mdv-gpl3-py26P. Christeas
Conflicts: bin/netsvc.py bin/sql_db.py bin/tools/translate.py bzr revid: p_christ@hol.gr-20090208175840-xmy5c53ijl3rs1l5
2009-02-04[IMP] bad queries are logged in debug mode (log also the exception)Christophe Simonis
bzr revid: christophe@tinyerp.com-20090204110144-jjbt9a4itmt2vwi5