Issue 3735 in pharo: ODBCLibrary class moduleName calls deprecated method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3735 in pharo: ODBCLibrary class moduleName calls deprecated method

pharo
Status: New
Owner: ----

New issue 3735 by [hidden email]: ODBCLibrary class moduleName calls  
deprecated method
http://code.google.com/p/pharo/issues/detail?id=3735

I ran the sqlite/odbc tutorial on an XP box.
http://www.pharocasts.com/2010/12/access-database-through-odbc.html

When creating the sqlite database using ODBC, a warning pops up:

"The method SmalltalkImage platformName has been deprecated.
Use Smalltalk os platformName."

I traced the warning to this Sender:

ODBCLibrary class >> moduleName
        "Return the name of the module for this library"
        SmalltalkImage current platformName = 'Win32' ifTrue: [ ^ 'odbc32' ].
        SmalltalkImage current platformName = 'unix' ifTrue: [ ^ 'libodbc.so' ].
        ^ self error: 'Don''t know the ODBC library name'




Reply | Threaded
Open this post in threaded view
|

Re: Issue 3735 in pharo: ODBCLibrary class moduleName calls deprecated method

pharo
Updates:
        Status: Invalid

Comment #1 on issue 3735 by [hidden email]: ODBCLibrary class  
moduleName calls deprecated method
http://code.google.com/p/pharo/issues/detail?id=3735

This is not a bug of Pharo...  but the ODBC package. Can you send it to the  
author of that package?

As a workaround, you can turn off deprecation warnings in pharo (see  
Settings).