1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Handle transient malloc() failures in sqlite3CreateFunc(). (CVS 4371)

FossilOrigin-Name: c0ce63196458c81e0859fc8a38f2dd2145a580bc
This commit is contained in:
danielk1977
2007-09-03 11:04:22 +00:00
parent 369ff42e77
commit fa18bece7a
8 changed files with 75 additions and 38 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing built-in functions.
#
# $Id: func.test,v 1.67 2007/05/15 18:35:21 drh Exp $
# $Id: func.test,v 1.68 2007/09/03 11:04:22 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -870,4 +870,13 @@ do_test func-22.22 {
execsql {SELECT typeof(trim('hello',NULL));}
} {null}
# This is to test the deprecated sqlite3_aggregate_count() API.
#
do_test func-23.1 {
sqlite3_create_aggregate db
execsql {
SELECT legacy_count() FROM t6;
}
} {3}
finish_test