Menu

"SELECT * FROM table" is not working

Timo Stolz
2007-08-24
2012-09-19
  • Timo Stolz

    Timo Stolz - 2007-08-24

    Hello, I found something strange:

    belongs to the following code
    con = MySQLdb.connect(...)
    cursor = con.curser()
    cursor.execute(*)

    If I use "SELECT * FROM table;" that's not working.
    If I use instead "SELECT column1, column2, ..., columnN FROM table;"
    that works during the same connect (same username, same table, same rights....)

    I use:
    MySQL 5
    Python 2.5
    MySQLdb 1.2.1
    (Ubuntu 7.04 on a Fujitsu Simens Lifebook)

    Can you help me with that?
    greetings, Timo Stolz, timo.stolz@gerade-deshalb.org

     
    • Andy Dustman

      Andy Dustman - 2007-08-24

      Define "not working". What actually happens?

       
    • Timo Stolz

      Timo Stolz - 2007-08-25

      thank you for asking,

      a day later it worked. I'm sorry. mod_python probably chached a precompiled version of the script, that still had an programming error.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.