[packages/sqlite3] remove sign-function patch dropped from spec in 8ac846e

atler atler at pld-linux.org
Fri Apr 2 20:43:37 CEST 2021


commit 98f1aaa76772b847cd09ce72957358b424647fe4
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Apr 2 20:27:09 2021 +0200

    remove sign-function patch dropped from spec in 8ac846e

 sqlite3-sign-function.patch | 43 -------------------------------------------
 1 file changed, 43 deletions(-)
---
diff --git a/sqlite3-sign-function.patch b/sqlite3-sign-function.patch
deleted file mode 100644
index c5ae7b1..0000000
--- a/sqlite3-sign-function.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-diff -uNr sqlite-3.4.1/src/func.c.orig sqlite-3.4.1/src/func.c
---- sqlite-3.4.1/src/func.c.orig	2007-06-28 12:46:19.000000000 +0000
-+++ sqlite-3.4.1/src/func.c	2007-07-23 11:39:52.000000000 +0000
-@@ -150,6 +150,31 @@
- }
- 
- /*
-+** Implementation of the sign() function
-+*/
-+static void signFunc(sqlite3_context *context, int argc, sqlite3_value **argv){
-+  assert( argc==1 );
-+  switch( sqlite3_value_type(argv[0]) ){
-+    case SQLITE_INTEGER: {
-+      i64 iVal = sqlite3_value_int64(argv[0]);
-+      iVal = (iVal > 0)? 1 : (iVal < 0)? -1 : 0;
-+      sqlite3_result_int64(context, iVal);
-+      break;
-+    }
-+    case SQLITE_NULL: {
-+      sqlite3_result_null(context);
-+      break;
-+    }
-+    default: {
-+      double rVal = sqlite3_value_double(argv[0]);
-+      rVal = (rVal > 0)? 1.0 : (rVal < 0)? -1.0 : 0;
-+      sqlite3_result_double(context, rVal);
-+      break;
-+    }
-+  }
-+}
-+
-+/*
- ** Implementation of the substr() function.
- **
- ** substr(x,p1,p2)  returns p2 characters of x[] beginning with p1.
-@@ -1315,6 +1340,7 @@
-     FUNCTION(substr,             2, 0, 0, substrFunc       ),
-     FUNCTION(substr,             3, 0, 0, substrFunc       ),
-     FUNCTION(abs,                1, 0, 0, absFunc          ),
-+    FUNCTION(sign,               1, 0, 0, signFunc         ),
- #ifndef SQLITE_OMIT_FLOATING_POINT
-     FUNCTION(round,              1, 0, 0, roundFunc        ),
-     FUNCTION(round,              2, 0, 0, roundFunc        ),
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sqlite3.git/commitdiff/6abc795d8772678bc73ad49e2446643d9cb7c2ce



More information about the pld-cvs-commit mailing list