mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
and more..
This commit is contained in:
@@ -74,7 +74,7 @@ namespace OpenSim.Data.PGSQL
|
||||
{
|
||||
return NpgsqlDbType.Double;
|
||||
}
|
||||
if (type == typeof(Single))
|
||||
if (type == typeof(float))
|
||||
{
|
||||
return NpgsqlDbType.Double;
|
||||
}
|
||||
@@ -285,6 +285,18 @@ namespace OpenSim.Data.PGSQL
|
||||
return parameter;
|
||||
}
|
||||
|
||||
internal NpgsqlParameter CreateParameterNullBytea(string parameterName)
|
||||
{
|
||||
//Tweak so we dont always have to add : sign
|
||||
if (parameterName.StartsWith(":")) parameterName = parameterName.Replace(":", "");
|
||||
|
||||
//HACK if object is null, it is turned into a string, there are no nullable type till now
|
||||
NpgsqlParameter parameter = new NpgsqlParameter(parameterName, NpgsqlDbType.Bytea);
|
||||
parameter.Direction = ParameterDirection.Input;
|
||||
parameter.Value = null;
|
||||
return parameter;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create a parameter with PGSQL schema type
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user