mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-10 18:53:44 +03:00
Cosmetics
This commit is contained in:
parent
18aea251b3
commit
0e9515c540
|
@ -303,31 +303,38 @@ class Dump:
|
||||||
separator += "+"
|
separator += "+"
|
||||||
self.__write("Database: %s\nTable: %s" % (db, table))
|
self.__write("Database: %s\nTable: %s" % (db, table))
|
||||||
|
|
||||||
|
|
||||||
if conf.replicate:
|
if conf.replicate:
|
||||||
cols = []
|
cols = []
|
||||||
|
|
||||||
for column in columns:
|
for column in columns:
|
||||||
if column != "__infos__":
|
if column != "__infos__":
|
||||||
colType = Replication.INTEGER
|
colType = Replication.INTEGER
|
||||||
|
|
||||||
for value in tableValues[column]['values']:
|
for value in tableValues[column]['values']:
|
||||||
try:
|
try:
|
||||||
if re.search("^[\ *]*$", value): #NULL
|
if re.search("^[\ *]*$", value): #NULL
|
||||||
continue
|
continue
|
||||||
|
|
||||||
temp = int(value)
|
temp = int(value)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
colType = None
|
colType = None
|
||||||
break
|
break
|
||||||
|
|
||||||
if colType is None:
|
if colType is None:
|
||||||
colType = Replication.REAL
|
colType = Replication.REAL
|
||||||
|
|
||||||
for value in tableValues[column]['values']:
|
for value in tableValues[column]['values']:
|
||||||
try:
|
try:
|
||||||
if re.search("^[\ *]*$", value): #NULL
|
if re.search("^[\ *]*$", value): #NULL
|
||||||
continue
|
continue
|
||||||
|
|
||||||
temp = float(value)
|
temp = float(value)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
colType = None
|
colType = None
|
||||||
break
|
break
|
||||||
|
|
||||||
cols.append((column, colType if colType else Replication.TEXT))
|
cols.append((column, colType if colType else Replication.TEXT))
|
||||||
|
|
||||||
rtable = replication.createTable(table, cols)
|
rtable = replication.createTable(table, cols)
|
||||||
|
|
||||||
if count == 1:
|
if count == 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user