Re: Converting text inserts to DBI calls
Rafael Kitover <[email protected]> Tue, 29 Sep 2009 12:40:58 -0400
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
The DBIx::Class (an ORM) branch I've been working on that will soon be released, has transparent support for blob inserts/updates, it's at: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/sybase_bulkinsert_support/ Only issue is updates with LIKE conditions against blobs in where, that doesn't work yet. Of course it would be DBIC syntax not DBI syntax. On Tue, Sep 29, 2009 at 10:59:16AM -0400, Wechsler, Steven wrote: > I'm involved in a project where I need to replicate MySQL DML to Sybase > 15. > > What's the easiest method I can use when inserting or updating text > columns? Since placeholders aren't supported, it seems like I will need > to parse the schema for each table, insert the non-text data and then do > a ct_send_data() for each text column. I see that I can do direct > inserts, but that can become a quoting nightmare if both single and > double quotes appear in a single field. > > Suggestions are welcomed. > > Thanks, > > Steve >