| 4556 | |
| 4557 | #endif |
| 4558 | int sqlite3_series_init( |
| 4559 | sqlite3 *db, |
| 4560 | char **pzErrMsg, |
| 4561 | const sqlite3_api_routines *pApi |
| 4562 | ){ |
| 4563 | int rc = SQLITE_OK; |
| 4564 | SQLITE_EXTENSION_INIT2(pApi); |
| 4565 | #ifndef SQLITE_OMIT_VIRTUALTABLE |
| 4566 | if( sqlite3_libversion_number()<3008012 && pzErrMsg!=0 ){ |
| 4567 | *pzErrMsg = sqlite3_mprintf( |
| 4568 | "generate_series() requires SQLite 3.8.12 or later"); |
| 4569 | return SQLITE_ERROR; |
| 4570 | } |
| 4571 | rc = sqlite3_create_module(db, "generate_series", &seriesModule, 0); |
| 4572 | #endif |
| 4573 | return rc; |
| 4574 | } |
| 4575 | |
| 4576 | /************************* End ../ext/misc/series.c ********************/ |
| 4577 | /************************* Begin ../ext/misc/regexp.c ******************/ |