Re: [cx-oracle-users] Missleading Error-Message within cx_Oracle unicode-build
Brought to you by:
atuining
From: Massa, H. A. <ch...@gh...> - 2010-10-20 21:00:43
|
John, Try sql = u"select 1 from dual" > > yes, I know that solves the problem. My improvement-suggestion is concerned with the error message: > > sql = "select 1 from dual" > > ocs.execute(sql) > > raises a > > TypeError: expecting None or a string > > when, infact, "sql" IS a string, but cx_Oracle as an unicode build > that error should be "Type Error: expecting None or a *unicode* (without the bold) Harald -- GHUM GmbH Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 Amtsgericht Stuttgart, HRB 734971 - persuadere. et programmare |