mysql-super-smack-1.3-gen-data.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. diff -Nuar super-smack-1.3.orig/smacks/select-key.smack super-smack-1.3/smacks/select-key.smack
  2. --- super-smack-1.3.orig/smacks/select-key.smack 2005-05-30 03:04:38.000000000 -0700
  3. +++ super-smack-1.3/smacks/select-key.smack 2008-11-13 22:27:48.125627179 -0800
  4. @@ -24,7 +24,7 @@
  5. min_rows "90000"; // the table must have at least that many rows
  6. data_file "words.dat"; // if the table is empty, load the data from
  7. //this file
  8. - gen_data_file "gen-data -n 90000 -f %12-12s%n,%25-25s,%n,%d";
  9. + gen_data_file "super-smack-gen-data -n 90000 -f %12-12s%n,%25-25s,%n,%d";
  10. // if the file above does not exist, generate it with the above shell command
  11. // you can replace this command with anything that prints comma-delimited
  12. // data to stdout, just make sure you have the right number of columns
  13. diff -Nuar super-smack-1.3.orig/smacks/update-select.smack super-smack-1.3/smacks/update-select.smack
  14. --- super-smack-1.3.orig/smacks/update-select.smack 2005-05-30 03:04:51.000000000 -0700
  15. +++ super-smack-1.3/smacks/update-select.smack 2008-11-13 22:27:45.070167829 -0800
  16. @@ -24,7 +24,7 @@
  17. min_rows "90000"; // the table must have at least that many rows
  18. data_file "words.dat"; // if the table is empty, load the data from
  19. //this file
  20. - gen_data_file "gen-data -n 90000 -f %12-12s%n,%25-25s,%n,%d";
  21. + gen_data_file "super-smack-gen-data -n 90000 -f %12-12s%n,%25-25s,%n,%d";
  22. // if the file above does not exist, generate it with the above command
  23. }
  24. diff -Nuar super-smack-1.3.orig/src/Makefile.am super-smack-1.3/src/Makefile.am
  25. --- super-smack-1.3.orig/src/Makefile.am 2001-02-24 03:44:30.000000000 -0800
  26. +++ super-smack-1.3/src/Makefile.am 2008-11-13 22:27:37.693573246 -0800
  27. @@ -19,7 +19,7 @@
  28. INCLUDES = @MYSQL_INCLUDE@ @PGSQL_INCLUDE@ @ORACLE_INCLUDE@
  29. noinst_PROGRAMS=test-dictionary test-client test_tcp_client
  30. -bin_PROGRAMS=super-smack gen-data
  31. +bin_PROGRAMS=super-smack super-smack-gen-data
  32. test_dictionary_SOURCES=test-dictionary.cc \
  33. dictionary.cc dictionary.h \
  34. die.cc die.h \
  35. @@ -57,7 +57,7 @@
  36. tcp_client.h tcp_client.cc
  37. super_smack_LDADD = @MYSQL_LIB@ @PGSQL_LIB@ @ORACLE_LIB@
  38. -gen_data_SOURCES=gen-data.cc die.cc die.h
  39. +super_smack_gen_data_SOURCES=gen-data.cc die.cc die.h
  40. # yacc needs to generate a y.tab.h
  41. YFLAGS = -d