diff --git a/process/Sql_lib/process.js b/process/Sql_lib/process.js
index 09f923765541a739d7cd93bf787f633715dc11a1..1747da97edf54ac82fa41bbbfd5f354cddf7fb32 100644
--- a/process/Sql_lib/process.js
+++ b/process/Sql_lib/process.js
@@ -1506,7 +1506,7 @@ SqlBuilder.prototype._prepare = function(field, value, cond, fieldType, pSubsele
     } 
     else
     {
-        type = fieldType;
+        var type = fieldType;
         values = [[value.toString(), type]];
     }