Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random records not showing any items #17

Open
dotancohen opened this issue Jan 22, 2014 · 2 comments
Open

Random records not showing any items #17

dotancohen opened this issue Jan 22, 2014 · 2 comments
Labels

Comments

@dotancohen
Copy link
Owner

Consider this table:

mysql> select * from users;
+----+-------+----------------------------------+-------+---------+
| id | login | password                         | type  | type_id |
+----+-------+----------------------------------+-------+---------+
| 48 | uriel | 76419c58730d9f35de7ac538c2fd6737 | admin |    NULL |
| 49 | inbal | 76419c58730d9f35de7ac538c2fd6737 | admin |    NULL |
+----+-------+----------------------------------+-------+---------+
2 rows in set (0.00 sec)

The current Squeal code consistently shows:

   Some random records
   -------------------
No records returned!
@dotancohen
Copy link
Owner Author

Here is another:

mysql> select id from iso;
+----+
| id |
+----+
| 22 |
| 23 |
| 24 |
| 25 |
| 26 |
| 27 |
| 28 |
+----+
7 rows in set (0.00 sec)

Squeal shows:

   Some random records
   -------------------
No records returned!

@dotancohen dotancohen added the bug label May 2, 2014
@dotancohen
Copy link
Owner Author

The random records feature is broken if the IDs are not sequential. In a table with records of ID 10, 20, 30, 40, etc almost no records are ever found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant