diff --git a/sqlor/sor.py b/sqlor/sor.py index 2d0e6d2..1e12ecd 100755 --- a/sqlor/sor.py +++ b/sqlor/sor.py @@ -567,7 +567,7 @@ class SQLor(object): fields = [ i['name'] for i in desc['fields']] fns = ','.join(fields) vfns = ','.join(['${%s}$' % n for n in fields ]) - sql = 'insert into %s (%s.%s) values (%s)' % (self.dbname, tablename,fns,vfns) + sql = 'insert into %s.%s (%s.%s) values (%s)' % (self.dbname, tablename, tablename,fns,vfns) await self.runSQL({'sql_string':sql},ns,None) async def R(self,tablename,ns,filters=None): diff --git a/sqlor/version.py b/sqlor/version.py index 0000823..406ba5a 100644 --- a/sqlor/version.py +++ b/sqlor/version.py @@ -1,2 +1,4 @@ +# fixed sor.py C function bug. +__version__ = 0.1.2 # use PyMySQL to replace mysql-connector -__version__ = '0.1.1' +# __version__ = '0.1.1'