** SQL Function: decimal_add(X, Y) ** decimal_sub(X, Y) ** ** Return the sum or difference of X and Y. */
| 4943 | ** Return the sum or difference of X and Y. |
| 4944 | */ |
| 4945 | static void decimalAddFunc( |
| 4946 | sqlite3_context *context, |
| 4947 | int argc, |
| 4948 | sqlite3_value **argv |
| 4949 | ){ |
| 4950 | Decimal *pA = decimal_new(context, argv[0], 0, 0); |
| 4951 | Decimal *pB = decimal_new(context, argv[1], 0, 0); |
| 4952 | UNUSED_PARAMETER(argc); |
| 4953 | decimal_add(pA, pB); |
| 4954 | decimal_result(context, pA); |
| 4955 | decimal_free(pA); |
| 4956 | decimal_free(pB); |
| 4957 | } |
| 4958 | static void decimalSubFunc( |
| 4959 | sqlite3_context *context, |
| 4960 | int argc, |
nothing calls this directly
no test coverage detected