DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Routines.SystemFunctionsProvider.Cast Class Reference

Static Public Member Functions

static InvokeResult Execute (InvokeContext context)
 
static SqlType ReturnType (InvokeContext context)
 

Detailed Description

Definition at line 202 of file SystemFunctionsProvider.cs.

Member Function Documentation

static InvokeResult Deveel.Data.Routines.SystemFunctionsProvider.Cast.Execute ( InvokeContext  context)
inlinestatic

Definition at line 203 of file SystemFunctionsProvider.cs.

203  {
204  var value = context.EvaluatedArguments[0];
205  var typeArg = context.EvaluatedArguments[1];
206  var typeString = typeArg.AsVarChar().Value.ToString();
207  var type = SqlType.Parse(context.Request.Context, typeString);
208 
209  return context.Result(SystemFunctions.Cast(value, type));
210  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33
static SqlType Parse(string s)
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent...
Definition: SqlType.cs:321
static SqlType Deveel.Data.Routines.SystemFunctionsProvider.Cast.ReturnType ( InvokeContext  context)
inlinestatic

Definition at line 212 of file SystemFunctionsProvider.cs.

212  {
213  var typeArg = context.EvaluatedArguments[1];
214  var typeString = typeArg.AsVarChar().Value.ToString();
215  return SqlType.Parse(context.Request.Context, typeString);
216  }
Defines the properties of a specific SQL Type and handles the values compatible.
Definition: SqlType.cs:33
static SqlType Parse(string s)
Parses a SQL formatted string that defines a data-type into a constructed SqlType object equivalent...
Definition: SqlType.cs:321

The documentation for this class was generated from the following file: