THRIFT-4386 Add Lua 5.3/5.4 support
Clint: lua
Patch: Thomas Bruggink
This closes #3012
diff --git a/lib/lua/TProtocol.lua b/lib/lua/TProtocol.lua
index 1306fb3..f7a993f 100644
--- a/lib/lua/TProtocol.lua
+++ b/lib/lua/TProtocol.lua
@@ -86,6 +86,7 @@
function TProtocolBase:writeI64(i64) end
function TProtocolBase:writeDouble(dub) end
function TProtocolBase:writeString(str) end
+function TProtocolBase:writeUuid(uuid) end
function TProtocolBase:readMessageBegin() end
function TProtocolBase:readMessageEnd() end
function TProtocolBase:readStructBegin() end
@@ -105,6 +106,7 @@
function TProtocolBase:readI64() end
function TProtocolBase:readDouble() end
function TProtocolBase:readString() end
+function TProtocolBase:readUuid() end
function TProtocolBase:skip(ttype)
if ttype == TType.BOOL then
@@ -151,6 +153,8 @@
self:skip(ettype)
end
self:readListEnd()
+ elseif ttype == TType.UUID then
+ self:readUuid()
else
terror(TProtocolException:new{
message = 'Invalid data'