[Bug Fix] :  Fix SQL error resulted by possible sql version compatibility.

Signed-off-by: Euhow <euhowzy@gmail.com>