|
Hello, I have build an API using DBIx::Class that executes many queries on either SQLite or mysql (same database schema). I have put traces in my script. When I execute on mysql, everything goes well and my traces output the following: trace1 selfstart=45622542 selfaligmentstrand=1 for SQlite I get: trace1 selfstart=45622542 selfaligmentstrand=1 If I use directly DBI and execute the same query, evrything goes ok and I get: the following query will be executed: SELECT me.location_id, me.start, me.end, me.accession, me.aligment_id, aligment.aligment_id, aligment.strand, aligment.reference_sequence_id, aligment.score, aligment.distant_id, aligment.distant_table FROM location me JOIN aligment aligment ON ( aligment.aligment_id = me.aligment_id ) WHERE ( ( ( start*strand < 45622542 ) AND ( me.aligment_id = 507781 ) ) ) ORDER BY start*strand DESC LIMIT 1 This is the code that executes the query inside DBIx::Class along with the traces:
I have runned the query inside the sqlite3 console and I get exactly the same result as in the mysql console for the this query (the right data). This problem is for sure linked to DBIx::Class with SQLite since I get the right result when I use DBI alone to execute the query. Any help would be appreciated. Thank you in advance, JF -- IMPORTANT: Veuillez penser à l'environnement avant d'imprimer ce courriel Jean-Francois Lucier Bio-informaticien B10 solutions, consultation en bioinformatique Centre de recherche clinique du CHUS 3001, 12e avenue Nord Sherbrooke (Québec) J1H 5N4 CANADA Téléphone: (819) 820-6868 ext: 12577 Fax: (819) 564-5392 |
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]
