Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated Copyright dates to include 2010 | David Sommerseth | 2010-05-25 | 1 | -1/+1 |
| | |||||
* | Add support for ft_STRING_LOWER in the sqlite3 driver | David Sommerseth | 2009-11-12 | 1 | -7/+17 |
| | | | | Also fixed some wrong tab/space issues | ||||
* | Fixed memory leak when sqlite_query() fails | David Sommerseth | 2009-09-26 | 1 | -0/+1 |
| | |||||
* | Rewrote sqlite_get_num_tuples() and sqlite_get_affected_rows() as macros | David Sommerseth | 2009-09-26 | 1 | -24/+0 |
| | |||||
* | Fixed SEGV error when calling sqlite_dump_result() on dbresults from other ↵ | David Sommerseth | 2009-09-26 | 1 | -2/+3 |
| | | | | queries than SELECT | ||||
* | Only add table alias in SQL 'WHERE' sections | David Sommerseth | 2009-09-26 | 1 | -1/+1 |
| | |||||
* | Moved the useful append_str() macro from sqlite.c to eurephia_nullsafe.h | David Sommerseth | 2009-09-25 | 1 | -11/+0 |
| | |||||
* | Removed usage of a global result pointer | David Sommerseth | 2009-09-17 | 1 | -54/+50 |
| | | | | | | | | The callback function do now get a pointer to the query results directly instead of using a global result pointer. This makes queries done in parallel a lot safer. Made the SQLITE_DEBUG main() function more generic and removed memwatch references which is no longer in use, as valgrind is much better and easier to use. | ||||
* | Added comments to sqlite.[ch] | David Sommerseth | 2009-09-08 | 1 | -13/+139 |
| | |||||
* | Added debug logging of free_nullsafe() calls as well | David Sommerseth | 2009-09-07 | 1 | -16/+16 |
| | |||||
* | Moved all malloc() operations over to a calloc wrapper, malloc_nullsafe() | David Sommerseth | 2009-09-07 | 1 | -11/+5 |
| | | | | This also improves debugging as well, if debug logging is enabled and log level is >= 40. | ||||
* | Removed header file which is no longer needed | David Sommerseth | 2009-09-05 | 1 | -1/+0 |
| | |||||
* | Added missing #include statements | David Sommerseth | 2009-09-02 | 1 | -0/+1 |
| | |||||
* | Only populate XML nodes if we have a value to populate it with | David Sommerseth | 2009-09-01 | 1 | -13/+14 |
| | |||||
* | SQLite3 - Added support for "affected rows" count on INSERT/UPDATE/DELETE ↵ | David Sommerseth | 2009-09-01 | 1 | -0/+10 |
| | | | | queries | ||||
* | Added improved filtering support to SQLite3 driver | David Sommerseth | 2009-04-05 | 1 | -1/+17 |
| | | | | Follow up of commit ff744b48fdc0665b620339d51424892def8d8071 | ||||
* | Fixed some possible issues with the XML implementation, regarding UTF-8 | David Sommerseth | 2009-03-29 | 1 | -5/+20 |
| | | | | | | Do proper conversion from char * to xmlChar *. Need to figure out a better way how to return xmlChar * to char * when returning strings which may contain UTF-8. | ||||
* | Made the licence explicit GPLv2 only | David Sommerseth | 2009-03-26 | 1 | -1/+1 |
| | |||||
* | Cleaned up the code a little bit | David Sommerseth | 2009-03-26 | 1 | -4/+2 |
| | | | | | Made sure we only include needed include files and checked that the copyright headers are equal and correct | ||||
* | sqlite3: Make sqlite_query_mapped(...) work with empty WHERE clause | David Sommerseth | 2008-12-26 | 1 | -3/+10 |
| | |||||
* | sqlite3 - Added saving last_insert_id on INSERT INTO queries | David Sommerseth | 2008-12-22 | 1 | -0/+3 |
| | |||||
* | sqlite3 - Added sortkeys as argument to sqlite_query_mapped(...) | David Sommerseth | 2008-12-20 | 1 | -2/+6 |
| | | | | | The last argument to the function can contain a list over field names which will be used in the ORDER BY clause when doing SELECT queries. | ||||
* | Fixed more memory leaks and missing memory initialisation. | David Sommerseth | 2008-12-19 | 1 | -2/+4 |
| | |||||
* | sqlite - BUGFIX: Fixed INSERT INTO statements when using ↵ | David Sommerseth | 2008-12-18 | 1 | -2/+8 |
| | | | | sqlite_query_mapped(...) | ||||
* | sqlite: Fixed segfault int SQLreservedWord(...) | David Sommerseth | 2008-12-18 | 1 | -1/+1 |
| | |||||
* | Added sqlite functions for populating an XML document directly | David Sommerseth | 2008-12-13 | 1 | -0/+19 |
| | |||||
* | Enhanced table/field mapping and eDBmkMapping_USERINFO(...) to include ↵ | David Sommerseth | 2008-12-11 | 1 | -0/+4 |
| | | | | possibility for table aliases | ||||
* | Do not encapsulate key-value pairs with () in UPDATE mode | David Sommerseth | 2008-12-08 | 1 | -3/+13 |
| | | | | | And added support for setting fields to NULL if flagged via the field type value ft_SETNULL | ||||
* | Added possibility to also set NULL values in UPDATE | David Sommerseth | 2008-12-08 | 1 | -1/+2 |
| | |||||
* | Update field mapping to include data type. Improved ↵ | David Sommerseth | 2008-12-08 | 1 | -22/+151 |
| | | | | | | | | | | | | | | sqlite_query_mapped(...) function The new sqlite_query_mapped(...) function will now consider the field type when formatting the data values for SQLite. In addition reserved words on the DATETIME data type will be preserved without quote encapsulation. Improved the sqlite_query_mapped(...) to also handle UPDATE, INSERT and DELETE in addition to SELECT. The function now needs two eDBfieldMap mappings. The first one will contain update/insert values, while the last one defines search criteria. | ||||
* | Extended sqlite.[ch] with sqlite_query_mapped(...) | David Sommerseth | 2008-12-07 | 1 | -0/+33 |
| | | | | | | | This functions does almost the same as sqlite_query(...), it takes an SQL statement without the WHERE clause. The where clause is built up based on the fields sent in via the eDBfieldMap struct, containing the fields and values to look for. | ||||
* | Added context_type into eurephiaCTX struct. Database queries limited due to ↵ | David Sommerseth | 2008-11-29 | 1 | -0/+4 |
| | | | | context type. | ||||
* | Log review - changed log levels for all DEBUG(...) calls | David Sommerseth | 2008-10-04 | 1 | -1/+1 |
| | |||||
* | Improved code security. LOG_DEBUG statements are only compiled if DEBUG=1 ↵ | David Sommerseth | 2008-09-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | is sent to make. Since several parts of the code where LOG_DEBUG was used with eurephia_log(...) contains security sensitive information (like logging password retrieved with get_env(...)), all debug logging is now done via the DEBUG macro. This macro will not produce any security relevant eurephia_log(...) statements unless the source is compiled with -DENABLE_DEBUG. This is activated via make by adding DEBUG=1 before the make targets. When not enabled, the binaries will not do any debug logging at all. | ||||
* | Changed to using sqlite3_vmprintf() function instead of vsnprintf() | David Sommerseth | 2008-09-10 | 1 | -3/+4 |
| | |||||
* | Added GPLv2 licence, updated *.[ch] files to include license, with exception ↵ | David Sommerseth | 2008-08-08 | 1 | -0/+14 |
| | | | | of memwatch and sha1 | ||||
* | Imported eurephia into git | David Sommerseth | 2008-08-06 | 1 | -0/+325 |