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