1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 06:08:38 -04:00
Commit graph

16 commits

Author SHA1 Message Date
Felipe Gasper
9dc75eaead Replace “string_unicode” boolean with “string_mode” enum.
Issue #78 and issue #68: This introduces additional, more robust
schemas for translating strings between SQLite and Perl.
2021-05-29 19:19:58 -04:00
Kenichi Ishigaki
627666e888 not to use Test::FailWarnings except for developers environment 2019-01-07 03:48:10 +09:00
Kenichi Ishigaki
f56689d929 use more test utility functions 2019-01-07 03:41:09 +09:00
Kenichi Ishigaki
fdde5b98ef use Test::FailWarnings as Test::NoWarnings does not play well with done_testing 2019-01-06 09:17:14 +09:00
Kenichi Ishigaki
c84a0a9781 use done_testing and remove plan tests 2019-01-06 09:03:41 +09:00
Kenichi Ishigaki
11c2f4e70f use warnings 2019-01-02 21:17:30 +09:00
Kenichi Ishigaki
12ab284322 removed shebang from tests 2019-01-02 21:10:51 +09:00
Peter Rabbitson
c4eab85ff7 Workaround for upcoming lack of dot in @INC ( RT#120444, sigh )
Zero functional changes, simply executed the following:

find . -name '*.t' -exec perl -0777 -p -i -e 's|^use t::lib::SQLiteTest|use lib "t/lib";\nuse SQLiteTest|m' {} +

Also had to do a manual (but identical) fix in t/01_compile.t
2017-05-05 00:48:33 +02:00
Kenichi Ishigaki
434aea6479 rename t/lib/Test.pm to t/lib/SQLiteTest.pm 2017-03-04 15:04:39 +09:00
Kenichi Ishigaki
895897258b DBD::SQLite: renamed "unicode" attribute to "sqlite_unicode" 2009-10-21 02:36:14 +00:00
Adam Kennedy
09f58b864d - Adding support parsing attributes out of the DSN (ADAMK)
- Dropping support for uncode before 5.8.5 to simplify support and
      to prevent people hurting themselves on platforms that don't
      properly support Unicode anyway (ADAMK)
2009-04-10 06:09:31 +00:00
Tatsuhiko Miyagawa
4ac21a0057 Calls sv_utf8_upgrade in sqlite_st_execute() so passed string values
are correctly assumed Perl unicode strings, instead of relying on its
internal character encoding as UTF-8.

This *might* break (potentially broken) apps that passes UTF-8 encoded
strings, instead of decoded strings, to ->execute or ->bind_param()
without SQL_BLOB. But this new behavior is more natural to how Perl
handles strings and consisten to what other drivers do under UTF-8
options set, e.g. DBD::mysql with mysql_enable_utf8 option. See also
http://use.perl.org/~miyagawa/journal/38770 for details.

Fixes RT bug 25371.
2009-04-08 01:36:29 +00:00
Tatsuhiko Miyagawa
a90d0d6146 Added more test to asymmetric_unicode to make sure binding param works 2009-04-08 00:12:59 +00:00
Tatsuhiko Miyagawa
be2e535f53 Added more tests to asymmetric_unicode.t to make sure the inserted string's length is 1 besides null 2009-04-07 22:05:13 +00:00
Adam Kennedy
bf9515d516 Disable known-bad release 2009-04-07 13:41:08 +00:00
Adam Kennedy
690d7472f3 Adding failing test for the asymmetric unicode bug 2009-04-05 23:56:09 +00:00