我想要退回桌子。但这是我得到的错误。如何解决这个问题才能退回一张桌子?
错误:声明返回记录的函数返回类型不匹配 DETAIL:Function的final语句必须是SELECT或INSERT / UPDATE / DELETE RETURNING。 CONTEXT:SQL函数“删除” **********错误********** 错误:声明返回记录的函数返回类型不匹配 SQL状态:42P13“
jdata = json.load(open(json_path))
path = findAllFiles(directory)
if os.path.isdir(path):
for root, dirs, files in os.walk(path):
for key, value in jdata.iteritems():
for name in files:
with open(os.path.join(root, name)) as fle:
content = fle.read()
if name.endswith('.txt') and re.search(Wordboundry(key), content):
print "Name", key, "was found in", name, "\n"
writeToFile(value, content, name, key)
else:
print "Name", key, "was not found in", name
else:
raise Exception(key, "was not found in", root) #This gives me error even though "Hello" can be found in file2.xml.
def FindName(content, key, name, value):
if name.endswith('.xml') and re.search(Wordboundry(key), content):
print "Name", key, "was found in", name, "\n"
OverrideXML(key, value, name)
elifif name.endswith('.m') and re.search(Wordboundry(key), content):
print "Name", key, "was found in", name, "\n"
OverrideM(key, value, name)