Python Forum
Rewrite a function to make it work with 'bottle-pymysql'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rewrite a function to make it work with 'bottle-pymysql'
#2
Actually i kust found it has a directive:

dictrows: Whether or not to support dict-like access to row objects (default: True).

so i just did:

plugin = bottle_pymysql.Plugin( dbuser='nikos', dbpass='*****', dbname='counters', dictrows=False )

and now it works with indexes as integers not as strings.
Reply


Messages In This Thread
RE: Rewrite a function to make it work with 'bottle-pymysql' - by nikos - Feb-26-2019, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  print doesnt work in a function ony 2 315 Mar-11-2024, 12:42 PM
Last Post: Pedroski55
  hi need help to make this code work correctly atulkul1985 5 801 Nov-20-2023, 04:38 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 698 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Why do I have to repeat items in list slices in order to make this work? Pythonica 7 1,358 May-22-2023, 10:39 PM
Last Post: ICanIBB
  I dont know why my function won't work? MehHz2526 3 1,207 Nov-28-2022, 09:32 PM
Last Post: deanhystad
  Mysql Syntax error in pymysql ilknurg 4 2,383 May-18-2022, 06:50 AM
Last Post: ibreeden
  Make my py script work only on 1 compter tomtom 14 3,901 Feb-20-2022, 06:19 PM
Last Post: DPaul
  time function does not work tester_V 4 3,052 Oct-17-2021, 05:48 PM
Last Post: tester_V
  pymysql can't do SELECT * Pedroski55 3 2,990 Sep-11-2021, 10:18 PM
Last Post: Pedroski55
  write new function or change the old one to work "smartter? korenron 3 1,991 Aug-09-2021, 10:36 AM
Last Post: jamesaarr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020