gda-statement-struct-util

gda-statement-struct-util

Description

Functions

gda_sql_identifier_force_quotes ()

gchar *
gda_sql_identifier_force_quotes (const gchar *str);

Add double quotes around the str identifier. This function is normally used only by database provider's implementation. Any double quote character is replaced by two double quote characters.

For other uses, see gda_sql_identifier_quote().

Parameters

str

an SQL identifier

 

Since: 5.0


gda_sql_identifier_prepare_for_compare ()

gchar *
gda_sql_identifier_prepare_for_compare
                               (gchar *str);

Prepares str to be compared:

  • if surrounded by double quotes or single quotes, then just remove the quotes

  • otherwise convert to lower case

The quoted string:

  • must start and finish with the same single or double quotes character

  • can contain the delimiter character (the single or double quotes) in the string if every instance of it is preceeded with a backslash character or with the delimiter character itself

This function is normally used only by database provider's implementation.

WARNING: str must NOT be a composed identifier (<part1>."<part2>" for example) WARNING: you may have to #include <sql-parser/gda-sql-parser.h>

Parameters

str

a quoted string

 

Returns

str

Since: 5.0


gda_sql_value_stringify ()

gchar *
gda_sql_value_stringify (const GValue *value);

Simplified version of gda_value_stringify().

Parameters

value

a GValue pointer

 

Returns

a new string

Types and Values