in reply to DBI:Sybase - Period in database name
Update: Hmm, all that function seems to do for 'foo.table' is wrap double quotes around it...so if that doesn't work for you, then I don't know what else to do."quote_identifier" $sql = $dbh->quote_identifier( $name ); $sql = $dbh->quote_identifier( $catalog, $schema, $table, \%att +r ); Quote an identifier (table name etc.) for use in an SQL statement, by escaping any special characters (such as double quotation marks) it contains and adding the required type of outer quotation marks.
Another update: Aha (read other posts in this thread). Sybase quotes identifiers with brackets (e.g. "[column name with spaces]"), which suggests to me that quote_identifier should do the same, although there is also a DBD::Sybase attribute 'syb_quoted_identifier', which AFAICT is supposed to enable single quotes for quoting identifiers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI:Sybase - Period in database name
by apu (Sexton) on Feb 23, 2013 at 02:13 UTC | |
by Anonymous Monk on Feb 23, 2013 at 07:49 UTC |